Function openmls::prelude::vlen::read_length

pub fn read_length<R>(bytes: &mut R) -> Result<(usize, usize), Error>
where R: Read,
Expand description

Read the length of a variable-length vector.

This function assumes that the reader is at the start of a variable length vector and returns an error if there’s not a single byte to read.

The length and number of bytes read are returned.