Function ssz::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.