Struct skimmer::reader::bytes_reader::BytesReader
[−]
[src]
pub struct BytesReader { /* fields omitted */ }
pub struct BytesReader { /* fields omitted */ }
impl BytesReader
[src]fn new(data: Vec<u8>) -> BytesReader
impl Read for BytesReader
[src]type Datum = BytesDatum
fn consume(&mut self, len: u8) -> Marker
fn consume_long(&mut self, len: usize) -> Marker
fn get_datum(&mut self, index: usize) -> Option<BytesDatum>
fn skip(&mut self, len: u8) -> u8
fn skip_long(&mut self, len: usize) -> usize
fn has(&mut self, len: u8) -> bool
fn has_long(&mut self, len: usize) -> bool
fn byte_at_start(&mut self, byte: u8) -> bool
fn byte_at(&mut self, byte: u8, at: usize) -> bool
fn bytes_2_at_start(&mut self, bytes: [u8; 2]) -> bool
fn bytes_2_at(&mut self, bytes: [u8; 2], at: usize) -> bool
fn bytes_3_at_start(&mut self, bytes: [u8; 3]) -> bool
fn bytes_3_at(&mut self, bytes: [u8; 3], at: usize) -> bool
fn bytes_4_at_start(&mut self, bytes: [u8; 4]) -> bool
fn bytes_4_at(&mut self, bytes: [u8; 4], at: usize) -> bool
fn bytes_at_start(&mut self, bytes: &[u8]) -> bool
fn bytes_at(&mut self, bytes: &[u8], at: usize) -> bool
fn slice_at(&mut self, at: usize, len: usize) -> Option<&[u8]>
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 slice(&mut self, len: usize) -> Option<&[u8]>