G-code Preview — API Reference
    Preparing search index...

    @chestnutlabs/gcode-containers — safe container extraction (DD-005 §4.4/§7).

    Phase 2 (#74): the hardened in-memory ZIP reader and the .gcode.3mf adapter. In-memory only, zero dependencies, never writes files, never fetches. Depends only on @chestnutlabs/toolpath-core; the parser consumes it through its structural ContainerAdapterLike type (worker entries compose).

    • Extract one entry fully in memory with incremental caps + streaming CRC. cap bounds the expanded size REGARDLESS of what headers claim, and must be a non-negative integer — NaN/Infinity/negative/fractional throws E_CONTAINER_OPTION (no value means "uncapped"). budget, when given, also charges the archive-wide maxExpandedBytesTotal (see ExpansionBudget).

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>