pub fn deserialize<D: Deserialize>(src: &[u8], cursor: &mut usize) -> D
Expand description
Deserializes the data from a byte slice into D
, reading from the given
cursor, and advancing it by the amount of bytes read.
pub fn deserialize<D: Deserialize>(src: &[u8], cursor: &mut usize) -> D
Deserializes the data from a byte slice into D
, reading from the given
cursor, and advancing it by the amount of bytes read.