pub struct TVFSManifest {
pub header: TVFSHeader,
pub path_table: Vec<PathEntry>,
pub vfs_table: Vec<VFSEntry>,
pub cft_table: Vec<CFTEntry>,
pub espec_table: Option<Vec<String>>,
/* private fields */
}Expand description
TVFS manifest
Fields§
§header: TVFSHeaderHeader information
path_table: Vec<PathEntry>Path table
vfs_table: Vec<VFSEntry>VFS table
cft_table: Vec<CFTEntry>Container file table
espec_table: Option<Vec<String>>ESpec table (optional)
Implementations§
Source§impl TVFSManifest
impl TVFSManifest
Sourcepub fn resolve_path(&self, path: &str) -> Option<FileInfo>
pub fn resolve_path(&self, path: &str) -> Option<FileInfo>
Resolve a file path to its file information
Sourcepub fn list_directory(&self, dir_path: &str) -> Vec<DirEntry>
pub fn list_directory(&self, dir_path: &str) -> Vec<DirEntry>
List all files in a directory
Sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
Get file count
Sourcepub fn deleted_count(&self) -> usize
pub fn deleted_count(&self) -> usize
Get deleted file count
Sourcepub fn total_size(&self) -> u64
pub fn total_size(&self) -> u64
Get total size of all files
Trait Implementations§
Source§impl Clone for TVFSManifest
impl Clone for TVFSManifest
Source§fn clone(&self) -> TVFSManifest
fn clone(&self) -> TVFSManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TVFSManifest
impl RefUnwindSafe for TVFSManifest
impl Send for TVFSManifest
impl Sync for TVFSManifest
impl Unpin for TVFSManifest
impl UnwindSafe for TVFSManifest
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