class

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)
Source

Instance methods

available_bits

Get current bit count

Source
bytes_read
Source
consume(n : UInt32)

Consume n bits

Source
ensure_bits(n : UInt32) : Bool

Tries to ensure we have at least n bits available.

Returns false if EOF reached before n bits available.

Source
peek(n : UInt32) : UInt32

Peeks at the next n bits without consuming them.

Returns the next n bits from the buffer without advancing position.

Source
read(n : UInt32) : UInt32
Source