-
Notifications
You must be signed in to change notification settings - Fork 147
Bitstream Class Reference
The Bitstream class wraps a Stream and adds methods to read data on an individual bit level.
Creates a Bitstream with the given Stream.
The bit position within the current byte.
Returns a new Bitstream backed by the same data at the same bit position.
Returns the current offset from the start of the stream in bits.
Returns whether or not the bitstream has the specified number of bits, as a boolean.
Advances the current bit offset by the specified number of bits. Advancing the bit stream also advances the backing Stream.
Byte aligns the bitstream to the next available byte.
Reads a single bit from the bitstream and advances the current bit position.
Reads a single bit from the bitstream without advancing the bit position.
Reads the specified number of bits from the bitstream, up to 16 bits, and advances the current bit position.
Reads the specified number of bits from the bitstream, up to 16 bits, without advancing the bit position.
Reads the specified number of bits from the bitstream, up to 32 bits, and advances the current bit position.
Reads the specified number of bits from the bitstream, up to 32 bits, without advancing the bit position.
Reads the specified number of bits from the bitstream, up to 40 bits, and advances the current bit position.
Reads the specified number of bits from the bitstream, up to 40 bits, without advancing the bit position.