[−][src]Struct bdf::io::BDFReader
Fields
metadata: Option<MetaChunk>
lookup_table: Option<HashLookupTable>
Methods
impl BDFReader
[src]
pub fn new(inner: File) -> Self
[src]
Creates a new BDFReader
pub fn read_start(&mut self) -> Result<(), Error>
[src]
Reads the metadata and lookup table
pub fn add_compression_chunk(&mut self) -> Result<(), Error>
[src]
Adds a chunk to the decompression channel to be decompressed by a worker thread
pub fn read_metadata(&mut self) -> Result<&MetaChunk, Error>
[src]
Verifies the header of the file and reads and stores the metadata
pub fn read_lookup_table(&mut self) -> Result<&HashLookupTable, Error>
[src]
Reads the lookup table of the file. This function should be called after the read_metadata function was called
pub fn next_chunk(&mut self) -> Result<GenericChunk, Error>
[src]
Returns the next chunk
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BDFReader
impl Send for BDFReader
impl Sync for BDFReader
impl Unpin for BDFReader
impl !UnwindSafe for BDFReader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,