pub struct Container {
pub data: Vec<u8>,
pub version: u8,
pub file_tag: u32,
pub footer_offset: u64,
pub entries: Vec<DirEntry>,
}Expand description
A parsed SPLMSSTR container and its directory entries.
Fields§
§data: Vec<u8>The whole file image.
version: u8Version byte at file offset 8.
file_tag: u32File-specific 24-bit little-endian value at offset 9.
Offset of the FOOTER region.
entries: Vec<DirEntry>Enumerated directory entries from both regions, in discovery order.
Implementations§
Source§impl Container
impl Container
Sourcepub fn segment_index(&self) -> Option<(&DirEntry, SegmentIndex<'_>)>
pub fn segment_index(&self) -> Option<(&DirEntry, SegmentIndex<'_>)>
Decode the self-bounded segment index in /Root/UG_PART/UG_PART.
Sourcepub fn om_sections(&self) -> Vec<(&DirEntry, Section<'_>)>
pub fn om_sections(&self) -> Vec<(&DirEntry, Section<'_>)>
Locate independently size-framed NX object-model sections.
Sourcepub fn indexed_om_sections(&self) -> Vec<(&DirEntry, IndexedSection<'_>)>
pub fn indexed_om_sections(&self) -> Vec<(&DirEntry, IndexedSection<'_>)>
Locate indexed NX object-model sections in catalogued file entries.
Sourcepub fn external_reference_paths(&self) -> Vec<String>
pub fn external_reference_paths(&self) -> Vec<String>
Extract child-part paths from catalogued external-reference payloads.
Sourcepub fn rmfastload_object_id_table(
&self,
) -> Option<(&DirEntry, RmFastLoadObjectIdTable)>
pub fn rmfastload_object_id_table( &self, ) -> Option<(&DirEntry, RmFastLoadObjectIdTable)>
Decode the counted object-id table from /Root/FastLoad/RMFastLoad.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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