Trait little_endian::Decode
[−]
[src]
pub trait Decode { fn read_le(from: &[u8]) -> Self; }
A decodable type.
Required Methods
fn read_le(from: &[u8]) -> Self
Read an integer in little-endian format.
This reads the first n bytes (depending on the size of Self
) of from
in little-endian
(least significant byte first).
Panics
This will potentially panic if from
is not large enough.