Skip to main content

encode_vint

Function encode_vint 

Source
pub fn encode_vint(value: i64) -> Vec<u8> 
Expand description

Encode a signed integer as a variable-length integer with backward compatibility

This function now prioritizes Cassandra-compatible format for better compatibility with standard Cassandra VInt encoding.

§Arguments

  • value - The integer value to encode

§Returns

Vector of bytes representing the VInt-encoded value