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

    Budget-aware growable SoA segment writer (DD-003 §7.2/§7.3).

    Accumulates segments directly into growable typed arrays (no intermediate object graphs) and keeps a byte-accurate account of every live working allocation. Any projected allocation — growth steps and the final right-size compaction, during which old and new capacity coexist — is checked against maxBufferBytes BEFORE it is performed. On budget exhaustion the writer reports failure and the parse stops at the current command boundary with a structured bounded result; it never throws an unhandled allocation error.

    Hierarchy

    • Error
      • BudgetExceededError
    Index

    Constructors

    • Parameters

      • requestedBytes: number
      • accountedBytes: number
      • maxBufferBytes: number

      Returns BudgetExceededError

    Properties

    accountedBytes: number
    maxBufferBytes: number
    requestedBytes: number