Trait wasmi::LittleEndianConvert
source · [−]pub trait LittleEndianConvert {
type Bytes: Default + AsRef<[u8]> + AsMut<[u8]>;
fn into_le_bytes(self) -> Self::Bytes;
fn from_le_bytes(bytes: Self::Bytes) -> Self;
}
Expand description
Types that can be converted from and to little endian bytes.
Required Associated Types
Required Methods
fn into_le_bytes(self) -> Self::Bytes
fn into_le_bytes(self) -> Self::Bytes
Converts self
into little endian bytes.
fn from_le_bytes(bytes: Self::Bytes) -> Self
fn from_le_bytes(bytes: Self::Bytes) -> Self
Converts little endian bytes into Self
.