pub trait PackFile {
// Required methods
fn open<P: AsRef<Path>>(path: P) -> Option<Self>
where Self: Sized;
fn has_entry(&self, path: &str) -> bool;
fn read_entry(&self, path: &str) -> Option<Vec<u8>>;
}Expand description
Represents a loaded VPK or generic pack file archive.
Required Methods§
Sourcefn open<P: AsRef<Path>>(path: P) -> Option<Self>where
Self: Sized,
fn open<P: AsRef<Path>>(path: P) -> Option<Self>where
Self: Sized,
Opens a pack file from the given physical path.