[][src]Trait deku::BitsReader

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

"Reader" trait: read bits and construct type

Required methods

fn read(
    input: &BitSlice<Msb0, u8>,
    input_is_le: bool,
    bit_size: Option<usize>,
    count: Option<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 - Number of elements to read for container, Some if len attribute is provided, else None
Loading content...

Implementations on Foreign Types

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

impl BitsReader for u8[src]

impl BitsReader for u16[src]

impl BitsReader for u32[src]

impl BitsReader for u64[src]

impl BitsReader for usize[src]

Loading content...

Implementors

Loading content...