pub struct GlbWriteLimits {
pub max_json_bytes: usize,
pub max_bin_bytes: usize,
pub max_total_bytes: usize,
pub max_structural_rows: usize,
pub max_name_bytes: usize,
pub max_work: usize,
}Expand description
Inclusive byte ceilings for the strict in-memory GLB writer.
Foot-cycle V1 callers should select Self::FOOT_CYCLE_V1 explicitly. A
caller preparing a larger artifact must make that authority explicit and
still remain within the glTF container’s u32 length fields.
Fields§
§max_json_bytes: usizeMaximum padded JSON chunk bytes.
max_bin_bytes: usizeMaximum padded binary chunk bytes.
max_total_bytes: usizeMaximum complete GLB bytes, including header and chunk framing.
max_structural_rows: usizeMaximum normalized JSON rows and bounded validation rows considered by strict preflight before it constructs a writer-owned JSON value.
max_name_bytes: usizeMaximum UTF-8 bytes retained in strict generated JSON names.
max_work: usizeMaximum aggregate strict traversal work across the admitted model’s source/output rows, binary components, sidecar lookups, and copied texture bytes.
Implementations§
Source§impl GlbWriteLimits
impl GlbWriteLimits
Sourcepub const FOOT_CYCLE_V1: Self
pub const FOOT_CYCLE_V1: Self
Conservative 256 MiB inclusive ceiling for each candidate component and for the framed in-memory GLB.
Trait Implementations§
Source§impl Clone for GlbWriteLimits
impl Clone for GlbWriteLimits
Source§fn clone(&self) -> GlbWriteLimits
fn clone(&self) -> GlbWriteLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more