pub fn decode<T: Decode + Default>(buffer: &[u8], endian: Endian) -> Result<T>
Deserialize a Decode implementation from binary data.
Decode
The type must also implement the Default trait.
Default