Function tox::toxcore::binary_io::gen_len_limit [−][src]
pub fn gen_len_limit(
buf: (&mut [u8], usize),
limit: usize
) -> Result<(&mut [u8], usize), GenError>
Generator that ensures that length of serialized data does not exceed specified limit.