pub fn decode_i64(buf: &[u8; 9]) -> (i64, usize)
Expand description
Decodes an i64
from a buffer, returning the value and encoded length.
ยงExamples
let mut buf = [0u8; 9];
let encoded_len = vu128::encode_i64(&mut buf, 123);
assert_eq!(vu128::decode_i64(&buf), (123, encoded_len));