deserial_string

Function deserial_string 

Source
pub fn deserial_string<R>(reader: &mut R, l: usize) -> Result<String, Error>
where R: ReadBytesExt,
Expand description

Read a string of given size. NB: Be aware that this allocates a buffer of the given length, and so this must only be used when the size is bounded, otherwise it will lead to a memory allocation failure, and panic.