#[repr(C, align(64))]pub struct EmfContainerHeader {
pub magic: [u8; 8],
pub version: u16,
pub flags: u16,
pub chunk_count: u32,
pub directory_offset: u64,
pub reference_epoch_s: f64,
pub grid_dims_bricks: [u32; 3],
pub voxel_size_meters: f32,
pub origin_meters: [f32; 3],
pub header_crc32c: u32,
}Expand description
Fixed 64-byte EMF Container Header (L1 cache-line DOD).
Fields§
§magic: [u8; 8]0x00..0x08: ASCII Magic Q42EMF64
version: u160x08..0x0A: Container version (1)
flags: u160x0A..0x0C: Container flags
chunk_count: u320x0C..0x10: Total chunk / brick count
directory_offset: u640x10..0x18: Byte offset to chunk directory table
reference_epoch_s: f640x18..0x20: Reference epoch timestamp in seconds
grid_dims_bricks: [u32; 3]0x20..0x2C: Grid dimensions in bricks [nx, ny, nz]
voxel_size_meters: f320x2C..0x30: Physical voxel spacing in meters
origin_meters: [f32; 3]0x30..0x3C: Domain spatial origin in meters [ox, oy, oz]
header_crc32c: u320x3C..0x40: CRC-32C checksum of bytes 0..60
Implementations§
Source§impl EmfContainerHeader
impl EmfContainerHeader
Sourcepub fn compute_crc32c(&self) -> u32
pub fn compute_crc32c(&self) -> u32
Compute the CRC-32C over the first 60 bytes of the header.
Sourcepub fn update_crc(&mut self)
pub fn update_crc(&mut self)
Update header_crc32c with the computed CRC-32C.
Trait Implementations§
Source§impl Clone for EmfContainerHeader
impl Clone for EmfContainerHeader
impl Copy for EmfContainerHeader
Source§impl Debug for EmfContainerHeader
impl Debug for EmfContainerHeader
Source§impl Default for EmfContainerHeader
impl Default for EmfContainerHeader
Source§impl PartialEq for EmfContainerHeader
impl PartialEq for EmfContainerHeader
impl Pod for EmfContainerHeader
impl StructuralPartialEq for EmfContainerHeader
Auto Trait Implementations§
impl Freeze for EmfContainerHeader
impl RefUnwindSafe for EmfContainerHeader
impl Send for EmfContainerHeader
impl Sync for EmfContainerHeader
impl Unpin for EmfContainerHeader
impl UnsafeUnpin for EmfContainerHeader
impl UnwindSafe for EmfContainerHeader
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.