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