Trait ink_env::FromLittleEndian
source · [−]pub trait FromLittleEndian {
type Bytes: Default + AsRef<[u8]> + AsMut<[u8]>;
fn from_le_bytes(bytes: Self::Bytes) -> Self;
}
Expand description
Allows to instantiate a type from its little-endian bytes representation.
Required Associated Types
Required Methods
sourcefn from_le_bytes(bytes: Self::Bytes) -> Self
fn from_le_bytes(bytes: Self::Bytes) -> Self
Create a new instance from the little-endian bytes representation.