Module binary

Source
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§

BlockError
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