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