pub struct BitStreamReader<'a> { /* private fields */ }
Expand description
Bitstream reader
Implementations§
Source§impl<'a> BitStreamReader<'a>
impl<'a> BitStreamReader<'a>
Sourcepub const TOP_LEVEL_BLOCK_ID: u64 = 18_446_744_073_709_551_615u64
pub const TOP_LEVEL_BLOCK_ID: u64 = 18_446_744_073_709_551_615u64
Top level fake block ID
Sourcepub fn read_signature(&mut self) -> Result<Signature, Error>
pub fn read_signature(&mut self) -> Result<Signature, Error>
Read signature, aka. Magic Number
Sourcepub fn read_abbrev_op(&mut self) -> Result<Operand, Error>
pub fn read_abbrev_op(&mut self) -> Result<Operand, Error>
Read abbreviated operand
Sourcepub fn read_abbrev(&mut self, num_ops: usize) -> Result<Abbreviation, Error>
pub fn read_abbrev(&mut self, num_ops: usize) -> Result<Abbreviation, Error>
Read abbreviation
Sourcepub fn read_abbreviated_record(
&mut self,
abbrev: &Abbreviation,
) -> Result<Record, Error>
pub fn read_abbreviated_record( &mut self, abbrev: &Abbreviation, ) -> Result<Record, Error>
Read abbreviated data record
Sourcepub fn read_block_info_block(
&mut self,
abbrev_width: usize,
) -> Result<(), Error>
pub fn read_block_info_block( &mut self, abbrev_width: usize, ) -> Result<(), Error>
Read block info block
Sourcepub fn read_block<V: BitStreamVisitor>(
&mut self,
id: u64,
abbrev_width: usize,
visitor: &mut V,
) -> Result<(), Error>
pub fn read_block<V: BitStreamVisitor>( &mut self, id: u64, abbrev_width: usize, visitor: &mut V, ) -> Result<(), Error>
Read block with visitor
Trait Implementations§
Source§impl<'a> Clone for BitStreamReader<'a>
impl<'a> Clone for BitStreamReader<'a>
Source§fn clone(&self) -> BitStreamReader<'a>
fn clone(&self) -> BitStreamReader<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for BitStreamReader<'a>
impl<'a> RefUnwindSafe for BitStreamReader<'a>
impl<'a> Send for BitStreamReader<'a>
impl<'a> Sync for BitStreamReader<'a>
impl<'a> Unpin for BitStreamReader<'a>
impl<'a> UnwindSafe for BitStreamReader<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more