turbo_bincode_decode

Function turbo_bincode_decode 

Source
pub fn turbo_bincode_decode<T: Decode<()>>(buf: &[u8]) -> Result<T, DecodeError>
Expand description

Decode using a TurboBincodeDecoder and check that the entire slice was consumed. Returns a DecodeError::ArrayLengthMismatch if some of the slice is not consumed during decoding.