pub fn read_from_slice(data: &[u8]) -> Result<(u128, usize), SerializationError>
Expand description
Decodes a number from a slice of bytes when size of encoded number is unknown, returning the number and the number of bytes read.
ยงArguments
data
- slice of bytes to decode number from