BitReader for reading bits from an IO stream
Handles JPEG byte stuffing (0xFF 0x00 sequences)
Instance methods
align_to_byte
Align to byte boundary by discarding remaining bits
Sourceread_bit
Read a single bit from the stream
SourceRead n bits from the stream as a UInt16
n must be between 1 and 16
Source