pub trait ReadBytes: Sized {
    fn read_be_bytes<R: Read>(reader: &mut R) -> Result<Self>;
fn read_le_bytes<R: Read>(reader: &mut R) -> Result<Self>;
fn read_be_bytes_and_calc_bytes<R: Read>(
        reader: &mut R,
        crc: &mut CRC<u32>
    ) -> Result<Self>;
fn read_le_bytes_and_calc_bytes<R: Read>(
        reader: &mut R,
        crc: &mut CRC<u32>
    ) -> Result<Self>; }

Required methods

This method reads bytes in big-endian byte order.

This method reads bytes in little-endian byte order.

Implementations on Foreign Types

Implementors