pub struct EmfContainerWriter {
pub origin_meters: [f32; 3],
pub voxel_size_meters: f32,
pub grid_dims_bricks: [u32; 3],
pub reference_epoch_s: f64,
pub flags: u16,
/* private fields */
}Expand description
Builder for constructing valid EMF-64 container files.
Fields§
§origin_meters: [f32; 3]§voxel_size_meters: f32§grid_dims_bricks: [u32; 3]§reference_epoch_s: f64§flags: u16Implementations§
Source§impl EmfContainerWriter
impl EmfContainerWriter
Sourcepub fn new(
origin_meters: [f32; 3],
voxel_size_meters: f32,
grid_dims_bricks: [u32; 3],
reference_epoch_s: f64,
) -> Self
pub fn new( origin_meters: [f32; 3], voxel_size_meters: f32, grid_dims_bricks: [u32; 3], reference_epoch_s: f64, ) -> Self
Create a new EMF container builder.
Sourcepub fn add_brick_chunk(
&mut self,
spatial_hilbert_index: u64,
cells: &[EmfCellRecord64],
time_slice_index: u32,
spectral_band_mask: u16,
flags: u16,
) -> Result<(), EmfError>
pub fn add_brick_chunk( &mut self, spatial_hilbert_index: u64, cells: &[EmfCellRecord64], time_slice_index: u32, spectral_band_mask: u16, flags: u16, ) -> Result<(), EmfError>
Add an 8x8x8 volumetric brick chunk.
Sourcepub fn total_required_bytes(&self) -> Result<usize, EmfError>
pub fn total_required_bytes(&self) -> Result<usize, EmfError>
Calculate the exact total byte size needed to serialize this container.
Sourcepub fn write_to_slice(&self, out: &mut [u8]) -> Result<usize, EmfError>
pub fn write_to_slice(&self, out: &mut [u8]) -> Result<usize, EmfError>
Serialize into caller output; cold sorting uses bounded-per-chunk scratch.
Sourcepub fn to_bytes_v3(
&self,
field: &EmfFieldInterpretation,
tracks: &[EmfAudioTrack<'_>],
limits: EmfExtensionLimits,
) -> Result<Vec<u8>, EmfError>
pub fn to_bytes_v3( &self, field: &EmfFieldInterpretation, tracks: &[EmfAudioTrack<'_>], limits: EmfExtensionLimits, ) -> Result<Vec<u8>, EmfError>
Opt-in v3. Cells and their repaired v2 trailers remain byte-identical. All extension/file limits are checked before allocating the output buffer.
Trait Implementations§
Source§impl Clone for EmfContainerWriter
impl Clone for EmfContainerWriter
Auto Trait Implementations§
impl Freeze for EmfContainerWriter
impl RefUnwindSafe for EmfContainerWriter
impl Send for EmfContainerWriter
impl Sync for EmfContainerWriter
impl Unpin for EmfContainerWriter
impl UnsafeUnpin for EmfContainerWriter
impl UnwindSafe for EmfContainerWriter
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.
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
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> ⓘ
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 more