Expand description
Streaming for binary gcode files The new binary G-code file consists of a file header followed by an ordered succession of blocks, in the following sequence:
File Header File Metadata Block (optional) Printer Metadata Block Thumbnails Blocks (optional) Print Metadata Block Slicer Metadata Block G-code Blocks
All of the multi-byte integers are encoded in little-endian byte ordering.
https://github.com/prusa3d/libbgcode/blob/main/doc/specifications.md
using this file as a example of good binary parsing
https://github.com/rust-av/flavors/blob/master/src/parser.rs
Modules§
- gcode_
block - Public: Contains the SVG converter.
- inflate
- Decompression helpers.
Structs§
- Bgcode
- Structure of the binary file.
Enums§
- Block
Error - Error while parsing text into a
Bgcode
structure.
Traits§
- Markdown
- A trait for markdown formatting.
Functions§
- bgcode_
parser - Parses a binary gcode
- bgcode_
parser_ with_ checksum - Parses a binary gcode