#[repr(C, align(64))]pub struct M64Header {
pub magic: [u8; 4],
pub version: u32,
pub header_size: u64,
pub total_file_size: u64,
pub spatial_origin: [f32; 2],
pub elevation_datum: [f32; 2],
pub chunk_table_offset: u64,
pub chunk_count: u64,
pub header_crc32c: u32,
pub container_flags: u32,
}Expand description
Fixed 64-Byte M64 Container Header (cache-line DOD).
Fields§
§magic: [u8; 4]0x00..0x04: ASCII Magic m64\0 (or e64\0)
version: u320x04..0x08: Format version (1/2, or explicit developmental georaster 3)
header_size: u640x08..0x10: Header size (64 for v1/v2; 192 for opt-in georaster v3)
total_file_size: u640x10..0x18: Total file size in bytes
spatial_origin: [f32; 2]0x18..0x20: Geodetic Reference Origin: [latitude, longitude] in degrees
elevation_datum: [f32; 2]0x20..0x28: Elevation datum: [base_altitude_m, vertical_scale_factor]
chunk_table_offset: u640x28..0x30: Byte offset to chunk directory table
chunk_count: u640x30..0x38: Number of spatial chunk partitions
header_crc32c: u320x38..0x3C: CRC-32C of bytes 0x00..0x38 and 0x3C..0x40 (excludes this field)
container_flags: u320x3C..0x40: Container flags (covered by header CRC-32C)
Implementations§
Source§impl M64Header
impl M64Header
Sourcepub fn compute_crc32c(&self) -> u32
pub fn compute_crc32c(&self) -> u32
CRC-32C over header bytes excluding the CRC field (0x00..0x38 and 0x3C..0x40).
Sourcepub fn update_crc(&mut self)
pub fn update_crc(&mut self)
Update header_crc32c with the flags-covering CRC-32C.
Trait Implementations§
impl Copy for M64Header
impl Pod for M64Header
impl StructuralPartialEq for M64Header
Auto Trait Implementations§
impl Freeze for M64Header
impl RefUnwindSafe for M64Header
impl Send for M64Header
impl Sync for M64Header
impl Unpin for M64Header
impl UnsafeUnpin for M64Header
impl UnwindSafe for M64Header
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>,
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
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
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> ⓘ
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> ⓘ
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 more