LibBGCode is the library that implements PrusaSlicer's binary G-code (.bgcode) file format: a block-structured container with separate blocks for metadata and G-code, optional compression (heatshrink and zlib) and MeatPack G-code encoding. It ships "binarize" and "convert" library components and a "bgcode" command line tool, and is used by PrusaSlicer and PrusaSlicer-based applications.