Skip to main content

Module streaming_loader

Module streaming_loader 

Source
Expand description

Progressive HTTP Range / OPFS slice streaming loader for .hmc bundles.

Fetches the 64-byte .hmc header and CBOR index footer first, then schedules prioritized byte-range requests across three tiers:

  1. StreamPriorityTier::Tier0SemanticAndProcedural — .q42 semantic slices, manifests, and .10d EONT1 / PROC1 / SKL1 / MRP1 / IMPO / SURF sections.
  2. StreamPriorityTier::Tier1MidLodMeshes — Mid-LOD (LOD2 / LOD1) mesh sections.
  3. StreamPriorityTier::Tier2HighPolyAndMip0 — High-poly LOD0 geometry and KTX2 mip0.

Every range arrival is verified against either the entry’s SHA-256 digest or the .10d section’s hardware-accelerated CRC-32C checksum before admission.

Re-exports§

pub use super::stream::index::HmcHeaderProbe;

Structs§

HmcProgressiveRangePlanner
Progressive range planner constructed from the 64B .hmc header and CBOR index footer.
HmcRangeRequest
A single byte-range request within a .hmc bundle ([offset .. offset + length)).

Enums§

StreamPriorityTier
Priority tier for progressive .hmc range hydration.

Functions§

classify_10d_section_tier
Classify a .10d interior section into a progressive priority tier.
classify_entry_tier
Classify a bundle entry into a progressive priority tier.
verify_arrived_range
Verify an arrived byte range against its HmcRangeRequest integrity digest (SHA-256 and/or CRC-32C).