[][src]Trait fable_format::Entry

pub trait Entry: Sized {
    fn len(&self) -> u64;
fn pos(&self) -> u64; fn reader<'a, Source: Read + Seek>(
        &mut self,
        source: &'a mut Source
    ) -> Result<Take<&'a mut Source>, Error> { ... } }

An entry to another section of the data.

Required methods

fn len(&self) -> u64

fn pos(&self) -> u64

Loading content...

Provided methods

fn reader<'a, Source: Read + Seek>(
    &mut self,
    source: &'a mut Source
) -> Result<Take<&'a mut Source>, Error>

Creates a reader for the entry for further decoding.

Using a std::io::BufReader source is recommended. Especially when reading multiple and/or small entries.

Loading content...

Implementors

impl Entry for StbEntry[src]

impl Entry for WadEntry[src]

Loading content...