[][src]Trait deku::BitsReaderItems

pub trait BitsReaderItems {
    fn read(
        input: &BitSlice<Msb0, u8>,
        input_is_le: bool,
        bit_size: Option<usize>,
        count: usize
    ) -> Result<(&BitSlice<Msb0, u8>, Self), DekuError>
    where
        Self: Sized
; }

"Reader" trait: read bits and construct multiple of type

Required methods

fn read(
    input: &BitSlice<Msb0, u8>,
    input_is_le: bool,
    bit_size: Option<usize>,
    count: usize
) -> Result<(&BitSlice<Msb0, u8>, Self), DekuError> where
    Self: Sized

Read bits and construct type

  • input - Input as bits
  • input_is_le - true if input is to be interpreted as little endian, false otherwise (controlled via endian deku attribute)
  • bit_size - Some if bits or bytes deku attributes provided, None otherwise
  • count - Some if the len or count attribute is provided
Loading content...

Implementations on Foreign Types

impl<T: BitsReader> BitsReaderItems for Vec<T>[src]

Loading content...

Implementors

Loading content...