pub trait FromBytes: Sized { fn read_le<R: Read>(reader: R) -> IoResult<Self>; fn from_bytes_le(bytes: &[u8]) -> Result<Self> { ... } }
fn read_le<R: Read>(reader: R) -> IoResult<Self>
Reads Self from reader as little-endian bytes.
Self
reader
fn from_bytes_le(bytes: &[u8]) -> Result<Self>
Returns Self from a byte array in little-endian order.
impl<const N: usize> FromBytes for [u16; N]
impl<const N: usize> FromBytes for [u32; N]
impl<const N: usize> FromBytes for [u64; N]
impl<const N: usize> FromBytes for [u8; N]
impl FromBytes for u8
impl FromBytes for u16
impl FromBytes for u32
impl FromBytes for u64
impl FromBytes for u128
impl FromBytes for i64
impl FromBytes for ()
fn read_le<R: Read>(_bytes: R) -> IoResult<Self>
impl FromBytes for bool
impl FromBytes for BigInteger64
impl FromBytes for BigInteger128
impl FromBytes for BigInteger256
impl FromBytes for BigInteger320
impl FromBytes for BigInteger384
impl FromBytes for BigInteger768
impl FromBytes for BigInteger832