Brotli::BitReader
Inherits Struct < Value < Object
Constants
FAST_INPUT_SLACK = 28
162 bits + 7 bytes (upstream bit_reader.h).
Constructors
new(input : Bytes, next_in : Int32 = 0, avail_in : Int32 = 0)
SourceClass methods
bit_mask(n : Int32) : UInt64
SourceInstance methods
avail_in
Sourceavailable_bits
Sourceguard_in
Sourcelast_in
Sourcenext_in
Sourceread_bits24(n : Int32) : UInt64
BrotliReadBits24 (n <= 24; 64-bit build — single window fill).
restore_state(from : Memento) : Nil
Sourcesafe_read_bits(n : Int32) : UInt64 | Nil
BrotliSafeReadBits (n <= 24): nil if there is not enough input.
save_state
Sourceset_input(input : Bytes, next_in : Int32, avail_in : Int32) : Nil
Switch the underlying input slice (C re-points br->next_in into s->buffer for the internal streaming buffer).