pub struct TVFSHeader {Show 14 fields
pub magic: [u8; 4],
pub version: u8,
pub header_size: u8,
pub ekey_size: u8,
pub patch_key_size: u8,
pub flags: u8,
pub path_table_offset: u64,
pub path_table_size: u64,
pub vfs_table_offset: u64,
pub vfs_table_size: u64,
pub cft_table_offset: u64,
pub cft_table_size: u64,
pub max_metafile_size: u16,
pub build_version: u32,
}
Expand description
TVFS header structure
Fields§
§magic: [u8; 4]
Magic bytes “TVFS” (0x53465654)
version: u8
Version (typically 1)
header_size: u8
Header size in bytes (minimum 0x26 = 38 bytes)
ekey_size: u8
EKey size (usually 9)
patch_key_size: u8
Patch key size (usually 9)
flags: u8
Flags (FileManifestFlags)
path_table_offset: u64
Path table offset (40-bit integer)
path_table_size: u64
Path table size (40-bit integer)
vfs_table_offset: u64
VFS table offset (40-bit integer)
vfs_table_size: u64
VFS table size (40-bit integer)
cft_table_offset: u64
Container file table offset (40-bit integer)
cft_table_size: u64
Container file table size (40-bit integer)
max_metafile_size: u16
Maximum metafile size
build_version: u32
Build version number
Implementations§
Source§impl TVFSHeader
impl TVFSHeader
Sourcepub fn has_write_support(&self) -> bool
pub fn has_write_support(&self) -> bool
Check if TVFS has write support
Sourcepub fn has_patch_support(&self) -> bool
pub fn has_patch_support(&self) -> bool
Check if TVFS has patch support
Sourcepub fn has_lowercase_paths(&self) -> bool
pub fn has_lowercase_paths(&self) -> bool
Check if TVFS forces lowercase paths
Trait Implementations§
Source§impl Clone for TVFSHeader
impl Clone for TVFSHeader
Source§fn clone(&self) -> TVFSHeader
fn clone(&self) -> TVFSHeader
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 TVFSHeader
impl RefUnwindSafe for TVFSHeader
impl Send for TVFSHeader
impl Sync for TVFSHeader
impl Unpin for TVFSHeader
impl UnwindSafe for TVFSHeader
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