Struct blorb::Blorb
[−]
[src]
pub struct Blorb<R: Read + Seek> { pub len: u32, // some fields omitted }
Access point for lazy loading blorb contents. This struct contains the methods to load resources from the provided blorb. This does not cache the results.
Fields
len: u32
The length of the IFRS chunk
Methods
impl<R: Read + Seek> Blorb<R>
[src]
fn from_file(file: R) -> Result<Blorb<R>, Error>
Creates a new Blorb from a file. The code goes through the given game file, validates the file type, and extracts the basic game objects for the blorb.
fn load_resource(&mut self, num: usize) -> Result<Chunk, Error>
loads a resource using the given index entry.