pub fn decode_var(src: &mut &[u8]) -> Result<u64, ()>
Decode a variable-length integer from a byte slice.