Kiwi integer wire encoding.
Kiwi uses unsigned LEB128 for uint/uint64 and ZigZag + unsigned LEB128
for int/int64. The actual LEB128/ZigZag mechanics are delegated to the
varint package; this module keeps Kiwi-specific range checks and error
normalization at the wire boundary.
Summary
Functions
@spec decode_uint64(binary()) :: {non_neg_integer(), binary()}
@spec decode_uint(binary()) :: {non_neg_integer(), binary()}
@spec encode_uint64(non_neg_integer()) :: binary()
@spec encode_uint(non_neg_integer()) :: binary()