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