Function bincode::decode [] [src]

pub fn decode<T: Decodable>(b: &[u8]) -> DecodingResult<(T, u64)>

Decodes a slice of bytes into an object.

If successful, this function returns the decoded object along with the number of bytes that were read.

This method does not have a size-limit because with all the bytes contiguous in memory, then nothing is gained by having a limiter.