#[non_exhaustive]pub struct BundleHeader {Show 13 fields
pub signature: RawStr,
pub format: u32,
pub version_player: RawStr,
pub version_engine: RawStr,
pub layout: LayoutKind,
pub engine_version: Option<Result<ResolvedVersion, VersionError>>,
pub data_flags: Option<u32>,
pub flags_class: Option<FlagsClass>,
pub block_alignment: bool,
pub encrypted: bool,
pub hash: Option<[u8; 16]>,
pub crc: Option<u32>,
pub blocks_info: Option<BlockInfo>,
}Expand description
The header, as read.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.signature: RawStrsignature.
format: u32UnityPy’s version: the format number.
version_player: RawStrversion_player.
version_engine: RawStrversion_engine.
layout: LayoutKindThe reader taken.
engine_version: Option<Result<ResolvedVersion, VersionError>>parse_version()’s result, where loading calls it (the Fs layout).
The dump’s engine_version_packed comes from it whether or not
loading called it (CANONICAL_DUMP.md 4.2).
data_flags: Option<u32>The data flags (Fs layout).
flags_class: Option<FlagsClass>ArchiveFlags or ArchiveFlagsOld (Fs layout).
block_alignment: boolWhether the 16-byte alignment after the header applied.
encrypted: boolWhether the encryption flag made UnityPy build a decryptor.
hash: Option<[u8; 16]>The web/raw hash (format 4 and up, not 6).
crc: Option<u32>The web/raw CRC (format 4 and up, not 6).
blocks_info: Option<BlockInfo>The blocks-info section’s row (Fs layout).
Trait Implementations§
Source§impl Clone for BundleHeader
impl Clone for BundleHeader
Source§impl Debug for BundleHeader
impl Debug for BundleHeader
impl Eq for BundleHeader
Source§impl PartialEq for BundleHeader
impl PartialEq for BundleHeader
impl StructuralPartialEq for BundleHeader
Auto Trait Implementations§
impl !Freeze for BundleHeader
impl !RefUnwindSafe for BundleHeader
impl !UnwindSafe for BundleHeader
impl Forget for BundleHeader
impl Move for BundleHeader
impl Send for BundleHeader
impl Sync for BundleHeader
impl Unpin for BundleHeader
impl UnsafeUnpin for BundleHeader
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