pub struct NxFile { /* private fields */ }
Expand description
A memory mapped NX file.
Implementations§
Source§impl NxFile
impl NxFile
Sourcepub fn open(path: &Path) -> Result<Self, NxError>
pub fn open(path: &Path) -> Result<Self, NxError>
Opens and memory maps an NX file, then validates its header.
Sourcepub fn node_count(&self) -> u32
pub fn node_count(&self) -> u32
Gets the total number of nodes in the file.
Sourcepub fn string_count(&self) -> u32
pub fn string_count(&self) -> u32
Gets the total number of strings in the file.
Sourcepub fn bitmap_count(&self) -> u32
pub fn bitmap_count(&self) -> u32
Gets the total number of bitmaps in the file.
Sourcepub fn audio_count(&self) -> u32
pub fn audio_count(&self) -> u32
Gets the total number of audio tracks in the file.
Auto Trait Implementations§
impl Freeze for NxFile
impl RefUnwindSafe for NxFile
impl Send for NxFile
impl Sync for NxFile
impl Unpin for NxFile
impl UnwindSafe for NxFile
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