[][src]Struct bdf::io::BDFReader

pub struct BDFReader {
    pub metadata: Option<MetaChunk>,
    pub lookup_table: Option<HashLookupTable>,
    // some fields omitted
}

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

impl Debug for BDFReader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.