pub struct RecHeader {
pub magic: u32,
pub version_major: u16,
pub version_minor: u16,
pub length_scale: f32,
pub pointer_width: u8,
pub big_endian: u8,
pub validation_enabled: u8,
pub snapshot_size: u64,
}Expand description
File header, fixed 32 bytes, little-endian. (b2RecHeader)
Fields§
§magic: u32‘B2RC’ = 0x43523242
version_major: u16§version_minor: u16§length_scale: f32The world length scale
pointer_width: u8sizeof(void*) in C, gates POD-def memcpy; always 8 here
big_endian: u80 on all supported targets
validation_enabled: u81 if built with validation, only for diagnostics on a layout mismatch
snapshot_size: u64bytes of snapshot blob after the header
Implementations§
Trait Implementations§
impl Copy for RecHeader
impl StructuralPartialEq for RecHeader
Auto Trait Implementations§
impl Freeze for RecHeader
impl RefUnwindSafe for RecHeader
impl Send for RecHeader
impl Sync for RecHeader
impl Unpin for RecHeader
impl UnsafeUnpin for RecHeader
impl UnwindSafe for RecHeader
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