pub fn decode<T: Decode + Default>(buffer: Vec<u8>, endian: Endian) -> Result<T>
Expand description

Deserialize a Decode implementation from binary data.

The type must also implement the Default trait.