Searched refs:USIZE_LEN (Results 1 – 1 of 1) sorted by relevance
8 const USIZE_LEN: usize = size_of::<usize>(); const159 if len > USIZE_LEN { in deserialized()164 let mut num = [0; USIZE_LEN]; in deserialized()165 reader.read_exact(&mut num[USIZE_LEN - len..])?; in deserialized()178 let to_write = USIZE_LEN - (len.leading_zeros() / 8) as usize; in serialize()183 let mut buf = [0; USIZE_LEN]; in serialize()185 written += writer.write_exact(&buf[USIZE_LEN - to_write..])?; in serialize()198 _ => 1 + USIZE_LEN - (len.leading_zeros() / 8) as usize, in encoded_len()