Skip to main content

decode

Function decode 

Source
pub fn decode<T: Decode<()>>(src: &[u8]) -> Result<(T, usize)>
Expand description

Decode a given type T from the given slice. Returns the decoded value along with the number of bytes read.