pub struct Layout {
pub envelope: Vec<u8>,
pub root: Node,
pub trailer: Vec<u8>,
pub super_bundles: Vec<String>,
pub fs: Vec<String>,
pub head: Option<u32>,
pub platform: Option<String>,
pub install_chunks: Vec<InstallChunk>,
pub install_groups: Vec<InstallGroup>,
pub excluded_superbundles: Vec<String>,
pub bundle_format: Option<u64>,
}Expand description
A read layout.toc.
Fields§
§envelope: Vec<u8>The envelope bytes in front of the DB, as stored.
root: NodeThe whole DB tree.
trailer: Vec<u8>The bytes after the tree (none in the measured layouts).
super_bundles: Vec<String>superBundles[].name: the superbundles the game loads, as Win32/globals; the TOC of each is <name>.toc in the
data folder. In the stock layout, 23 of 24 names have their TOC in Data and every TOC there is named.
fs: Vec<String>fs: the initfs files (initfs_Win32), which are encrypted.
head: Option<u32>head: a 32-bit number (625,200 in the stock layout and all mod layouts).
platform: Option<String>platform.
install_chunks: Vec<InstallChunk>installManifest.installChunks, in stored order.
install_groups: Vec<InstallGroup>installManifest.installGroups.
excluded_superbundles: Vec<String>installManifest.excludedSuperbundles.
bundle_format: Option<u64>installManifest.settings.bundleFormat: a 64-bit number as stored.
Implementations§
Trait Implementations§
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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