pub struct RpfFile {
pub archive: RpfArchive,
/* private fields */
}Fields§
§archive: RpfArchiveImplementations§
Source§impl RpfFile
impl RpfFile
pub fn open(path: &Path, keys: Option<&GtaKeys>) -> Result<Self>
pub fn extract_by_name( &self, name: &str, keys: Option<&GtaKeys>, ) -> Result<Vec<u8>>
pub fn extract( &self, entry: &RpfEntry, keys: Option<&GtaKeys>, ) -> Result<Vec<u8>>
pub fn walk( &self, keys: Option<&GtaKeys>, on_file: &mut dyn FnMut(&str, Vec<u8>), ) -> Result<()>
pub fn raw_data(&self) -> &[u8] ⓘ
Auto Trait Implementations§
impl Freeze for RpfFile
impl RefUnwindSafe for RpfFile
impl Send for RpfFile
impl Sync for RpfFile
impl Unpin for RpfFile
impl UnsafeUnpin for RpfFile
impl UnwindSafe for RpfFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more