Skip to main content

Module varbit

Module varbit 

Source
Expand description

Prometheus varbit integer encodings (chunkenc/varbit.go).

The sign handling intentionally mirrors the upstream implementation, including the > (not >=) threshold check.

Functionsยง

read_varbit_int
Reads a zig-zag encoded signed integer of variable bit width.
read_varbit_uint
Reads an unsigned integer of variable bit width.