pub struct BDFReader {
pub metadata: Option<MetaChunk>,
pub lookup_table: Option<HashLookupTable>,
/* private fields */
}Fields§
§metadata: Option<MetaChunk>§lookup_table: Option<HashLookupTable>Implementations§
Source§impl BDFReader
impl BDFReader
Sourcepub fn read_start(&mut self) -> Result<(), Error>
pub fn read_start(&mut self) -> Result<(), Error>
Reads the metadata and lookup table
Sourcepub fn add_compression_chunk(&mut self) -> Result<(), Error>
pub fn add_compression_chunk(&mut self) -> Result<(), Error>
Adds a chunk to the decompression channel to be decompressed by a worker thread
Sourcepub fn read_metadata(&mut self) -> Result<&MetaChunk, Error>
pub fn read_metadata(&mut self) -> Result<&MetaChunk, Error>
Verifies the header of the file and reads and stores the metadata
Sourcepub fn read_lookup_table(&mut self) -> Result<&HashLookupTable, Error>
pub fn read_lookup_table(&mut self) -> Result<&HashLookupTable, Error>
Reads the lookup table of the file. This function should be called after the read_metadata function was called
Sourcepub fn next_chunk(&mut self) -> Result<GenericChunk, Error>
pub fn next_chunk(&mut self) -> Result<GenericChunk, Error>
Returns the next chunk
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BDFReader
impl RefUnwindSafe for BDFReader
impl Send for BDFReader
impl Sync for BDFReader
impl Unpin for BDFReader
impl UnwindSafe for BDFReader
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