pub fn decode_varint(data: &[u8]) -> Result<(usize, usize)>
Decode variable-length integer
Returns (value, bytes_read)