pub fn decode_usize(buffer: &[u8]) -> Result<(usize, &[u8]), EncodingError>
Expand description
Decode a usize
from buffer
and return the remaining bytes.
This will fail, when we are decoding a usize
on a usize = u32 machine for data that was originally encoded on a usize = u64
machine whenever the value is over u32::MAX
.