read_offset

Function read_offset 

Source
pub fn read_offset(bytes: &[u8]) -> Result<usize, DecodeError>
Expand description

Reads a BYTES_PER_LENGTH_OFFSET-byte length from bytes, where bytes.len() >= BYTES_PER_LENGTH_OFFSET.