Trait skimmer::reader::Read
[−]
[src]
pub trait Read { type Datum; fn has(&mut self, len: u8) -> bool; fn has_long(&mut self, len: usize) -> bool; fn skip(&mut self, len: u8) -> u8; fn skip_long(&mut self, len: usize) -> usize; fn byte_at(&mut self, byte: u8, at: usize) -> bool; fn byte_at_start(&mut self, byte: u8) -> bool; fn bytes_2_at(&mut self, bytes: [u8; 2], at: usize) -> bool; fn bytes_2_at_start(&mut self, bytes: [u8; 2]) -> bool; fn bytes_3_at(&mut self, bytes: [u8; 3], at: usize) -> bool; fn bytes_3_at_start(&mut self, bytes: [u8; 3]) -> bool; fn bytes_4_at(&mut self, bytes: [u8; 4], at: usize) -> bool; fn bytes_4_at_start(&mut self, bytes: [u8; 4]) -> bool; fn bytes_at(&mut self, bytes: &[u8], at: usize) -> bool; fn bytes_at_start(&mut self, bytes: &[u8]) -> bool; fn get_byte_at(&mut self, at: usize) -> Option<u8>; fn get_byte_at_start(&mut self) -> Option<u8>; fn get_bytes_2_at(&mut self, at: usize) -> Option<(u8, u8)>; fn get_bytes_2_at_start(&mut self) -> Option<(u8, u8)>; fn get_bytes_3_at(&mut self, at: usize) -> Option<(u8, u8, u8)>; fn get_bytes_3_at_start(&mut self) -> Option<(u8, u8, u8)>; fn get_bytes_4_at(&mut self, at: usize) -> Option<(u8, u8, u8, u8)>; fn get_bytes_4_at_start(&mut self) -> Option<(u8, u8, u8, u8)>; fn consume(&mut self, len: u8) -> Marker; fn consume_long(&mut self, len: usize) -> Marker; fn get_datum(&mut self, index: usize) -> Option<Self::Datum>; fn slice_at(&mut self, at: usize, len: usize) -> Option<&[u8]>; fn slice(&mut self, len: usize) -> Option<&[u8]> { ... } }
Associated Types
type Datum
Required Methods
fn has(&mut self, len: u8) -> bool
fn has_long(&mut self, len: usize) -> bool
fn skip(&mut self, len: u8) -> u8
fn skip_long(&mut self, len: usize) -> usize
fn byte_at(&mut self, byte: u8, at: usize) -> bool
fn byte_at_start(&mut self, byte: u8) -> bool
fn bytes_2_at(&mut self, bytes: [u8; 2], at: usize) -> bool
fn bytes_2_at_start(&mut self, bytes: [u8; 2]) -> bool
fn bytes_3_at(&mut self, bytes: [u8; 3], at: usize) -> bool
fn bytes_3_at_start(&mut self, bytes: [u8; 3]) -> bool
fn bytes_4_at(&mut self, bytes: [u8; 4], at: usize) -> bool
fn bytes_4_at_start(&mut self, bytes: [u8; 4]) -> bool
fn bytes_at(&mut self, bytes: &[u8], at: usize) -> bool
fn bytes_at_start(&mut self, bytes: &[u8]) -> bool
fn get_byte_at(&mut self, at: usize) -> Option<u8>
fn get_byte_at_start(&mut self) -> Option<u8>
fn get_bytes_2_at(&mut self, at: usize) -> Option<(u8, u8)>
fn get_bytes_2_at_start(&mut self) -> Option<(u8, u8)>
fn get_bytes_3_at(&mut self, at: usize) -> Option<(u8, u8, u8)>
fn get_bytes_3_at_start(&mut self) -> Option<(u8, u8, u8)>
fn get_bytes_4_at(&mut self, at: usize) -> Option<(u8, u8, u8, u8)>
fn get_bytes_4_at_start(&mut self) -> Option<(u8, u8, u8, u8)>
fn consume(&mut self, len: u8) -> Marker
fn consume_long(&mut self, len: usize) -> Marker
fn get_datum(&mut self, index: usize) -> Option<Self::Datum>
fn slice_at(&mut self, at: usize, len: usize) -> Option<&[u8]>
Provided Methods
Implementors
impl Read for SliceReader
impl Read for BytesReader
impl Read for IoreadeofReader