pub struct PSArchive {
pub version: PSArchiveVersion,
pub compression: PSArchiveCompression,
pub table_of_contents: PSArchiveTOC,
pub manifest: PSArchiveTableItem,
pub files: Vec<String>,
pub contents: Vec<PSArchiveTableItem>,
pub file_size: usize,
}
Expand description
PSArchive contains all the information about a complete singular Playstation Archive file
Fields§
§version: PSArchiveVersion
version is the Playstation Archive file version
compression: PSArchiveCompression
compression is the Playstation Archive file compression
table_of_contents: PSArchiveTOC
table_of_contents is the table of contents for the Playstation Archive file
manifest: PSArchiveTableItem
manifest is the manifest file for the Playstation Archive file
files: Vec<String>
§contents: Vec<PSArchiveTableItem>
§file_size: usize
Implementations§
Source§impl PSArchive
impl PSArchive
pub fn get_manifest_size_offset(&self) -> (usize, usize)
pub fn get_size_offset(&self, item: usize) -> (usize, usize)
pub fn parse_manifest(&mut self, bytes: impl ConvertAsBytes) -> Vec<String>
pub fn parse_file(&self, item: usize, bytes: impl ConvertAsBytes) -> Vec<u8> ⓘ
Trait Implementations§
impl Eq for PSArchive
impl StructuralPartialEq for PSArchive
Auto Trait Implementations§
impl Freeze for PSArchive
impl RefUnwindSafe for PSArchive
impl Send for PSArchive
impl Sync for PSArchive
impl Unpin for PSArchive
impl UnwindSafe for PSArchive
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