The MSB-first, last-byte-first bit reader — see the parent module's moduledoc for the RFC 8878 conventions it implements. Internal to the zstd decoder.
Summary
Functions
Bits in READING order. The padding 1 bit (and the zero padding above it)
in the last byte is skipped: it terminates the stream, never decoded.
Types
@type t() :: %Capstan.Zstd.BitReader.Reverse{bits: tuple(), pos: non_neg_integer()}
Functions
Bits in READING order. The padding 1 bit (and the zero padding above it)
in the last byte is skipped: it terminates the stream, never decoded.
@spec read_exact(t(), non_neg_integer()) :: {:ok, non_neg_integer(), t()} | {:error, :bitstream_exhausted}