G-code Preview — API Reference
    Preparing search index...
    interface BgcodeDecodeResult {
        blocks: BgcodeBlockInfo[];
        checksum: "none" | "crc32";
        gcode: Uint8Array;
        settings: Record<string, string>;
        thumbnails: BgcodeThumbnail[];
    }
    Index

    Properties

    blocks: BgcodeBlockInfo[]

    Every block walked, in file order (for diagnostics / phase-4 metadata).

    checksum: "none" | "crc32"

    Whether the file declared per-block CRC32.

    gcode: Uint8Array

    The decoded plain G-code (all GCode blocks concatenated in file order).

    settings: Record<string, string>

    Merged INI key/values from the File/Printer/Print/Slicer metadata blocks (#188 phase 4c) — only populated when metadata: true. Later blocks win on key conflicts. Empty otherwise.

    thumbnails: BgcodeThumbnail[]

    Thumbnails from Thumbnail blocks (#188 phase 4c) — only when metadata: true.