biFlush method Null safety
Flush the bit buffer, keeping at most 7 bits in it.
Implementation
void biFlush() {
if (_numValidBits == 16) {
_putShort(_bitBuffer);
_bitBuffer = 0;
_numValidBits = 0;
} else if (_numValidBits >= 8) {
_putByte(_bitBuffer);
_bitBuffer = (_rshift(_bitBuffer, 8));
_numValidBits -= 8;
}
}