Expand description
Bit stream reader compatible with Prometheus’ chunkenc.bstreamReader.
Prometheus writes bits MSB-first and refills its internal buffer with
big-endian bytes; read_bits(n) returns the next n bits as the low bits
of a u64. This implementation keeps the same semantics so the decoders can
be a direct port.
Structs§
- BitReader
- MSB-first bit reader with the same semantics as Prometheus’
chunkenc.bstreamReader.