CrImage::WEBP::VP8L::BitReader
Inherits Reference / Object
Bit reader for VP8L bitstream.
Reads variable-length bit sequences from byte stream in little-endian order. Maintains bit buffer for efficient access.
Constructors
new(io : IO)
SourceInstance methods
bytes_read
Sourceensure_bits(n : UInt32) : Bool
Tries to ensure we have at least n bits available.
Returns false if EOF reached before n bits available.
peek(n : UInt32) : UInt32
Peeks at the next n bits without consuming them.
Returns the next n bits from the buffer without advancing position.
read(n : UInt32) : UInt32
Source