pub trait ToBytesLE {
fn to_bytes_le(&self) -> Result<Vec<u8>, Error>;
fn write_bytes_le(&self, dst: &mut [u8]) -> Result<usize, Error> { ... }
}
Expand description
Serialize a type into a sequence of bytes in little endian.
pub trait ToBytesLE {
fn to_bytes_le(&self) -> Result<Vec<u8>, Error>;
fn write_bytes_le(&self, dst: &mut [u8]) -> Result<usize, Error> { ... }
}
Serialize a type into a sequence of bytes in little endian.