karyon_core::util::decode

Function decode

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

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