Trait PakSource

Source
pub trait PakSource {
    // Required method
    fn read(&mut self, pointer: &PakPointer, offset: u64) -> PakResult<Vec<u8>>;
}
Expand description

This is where a Pak file will load from. This trait is automatically implemented for any type that implements Read and Seek.

Required Methods§

Source

fn read(&mut self, pointer: &PakPointer, offset: u64) -> PakResult<Vec<u8>>

Returns data from the source based on a PakPointer

Implementors§

Source§

impl<R> PakSource for R
where R: Read + Seek,