Trait wasmi::LittleEndianConvert
source · pub trait LittleEndianConvertwhere
Self: Sized,{
fn into_little_endian(self, buffer: &mut [u8]);
fn from_little_endian(buffer: &[u8]) -> Result<Self, Error>;
}
Expand description
Convert from and to little endian.
Required Methods§
sourcefn into_little_endian(self, buffer: &mut [u8])
fn into_little_endian(self, buffer: &mut [u8])
Convert to little endian buffer.
sourcefn from_little_endian(buffer: &[u8]) -> Result<Self, Error>
fn from_little_endian(buffer: &[u8]) -> Result<Self, Error>
Convert from little endian buffer.