#[non_exhaustive]pub struct SerializedHeader {
pub metadata_size: u32,
pub file_size: i64,
pub version: u32,
pub data_offset: i64,
pub endian: Endian,
pub reserved: Option<[u8; 3]>,
pub unknown: i64,
}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.metadata_size: u32metadata_size.
file_size: i64file_size.
version: u32The format number (UnityPy’s header.version).
data_offset: i64data_offset.
endian: EndianThe byte order.
reserved: Option<[u8; 3]>The three reserved bytes (format 9 and up).
unknown: i64Format 22’s trailing i64 (UnityPy’s unknown), else 0.
Trait Implementations§
Source§impl Clone for SerializedHeader
impl Clone for SerializedHeader
Source§impl Debug for SerializedHeader
impl Debug for SerializedHeader
impl Eq for SerializedHeader
Source§impl PartialEq for SerializedHeader
impl PartialEq for SerializedHeader
impl StructuralPartialEq for SerializedHeader
Auto Trait Implementations§
impl Forget for SerializedHeader
impl Freeze for SerializedHeader
impl Move for SerializedHeader
impl RefUnwindSafe for SerializedHeader
impl Send for SerializedHeader
impl Sync for SerializedHeader
impl Unpin for SerializedHeader
impl UnsafeUnpin for SerializedHeader
impl UnwindSafe for SerializedHeader
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