pub struct FileEntry {
pub parent_offset: u32,
pub sibling_offset: u32,
pub data_offset: u64,
pub data_size: u64,
pub hash_sibling_offset: u32,
pub name_size: u32,
pub name: String,
}
Expand description
File entry structure
Fields§
§parent_offset: u32
§sibling_offset: u32
§data_offset: u64
§data_size: u64
§hash_sibling_offset: u32
§name_size: u32
§name: String
Trait Implementations§
Source§impl<R: Read + Seek + Clone> FileEntryExt<R> for FileEntry
impl<R: Read + Seek + Clone> FileEntryExt<R> for FileEntry
type FS = RomFs<R>
Source§fn file_reader(&self, fs: &mut Self::FS) -> Result<SubFile<R>, Error>
fn file_reader(&self, fs: &mut Self::FS) -> Result<SubFile<R>, Error>
Returns a virtual file reader that buffers and reads the file Read more
Source§fn read_bytes(&self, fs: &mut Self::FS, size: usize) -> Result<Vec<u8>, Error>
fn read_bytes(&self, fs: &mut Self::FS, size: usize) -> Result<Vec<u8>, Error>
Read the whole file into memory, and returns a Vec. Read more
Source§fn file_extension(&self) -> Option<String>
fn file_extension(&self) -> Option<String>
Get the file extension, if any.
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnwindSafe for FileEntry
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