mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
The length of a varint value is encoded separately as an unsigned variable-length integer. For negative varint values, the encoded bytes are flipped to ensure that longer lengths sort smaller. This patch implements both encoding and decoding logic for varint lengths and will be used by the subsequent patch. Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com>