Read the next n bits from the bitstream, and then advance the bitstream by n bits. Equivalent to a
BitReader.peek32 following by a BitReader.skip. n must be ≤ 32.
The number of bits to read.
Advance the bitstream by n bytes. n may be larger than 32 bits.
Advance the bitstream until it's aligned with the next byte-boundary. If the bitstream is already at a byte-boundary, then this is a noop.
Returns true if the bytestream is aligned with a byte-boundary.
Seek to an arbitrary byte-offset in the bitstream, from the beginning of the bitstream.
The interface for both MSB and LSB bit-readers. Provides a bit-level information extraction from densely-packed bitstreams. This interface provides up to a maximum of 32-bit reads at a time, the largest bitwise-safe integer size.
See
createBitReader