Skip to main content

Module container

Module container 

Source
Expand description

The three packages a .ork file arrives in, told apart by their first bytes.

OpenRocket writes a zip archive holding an entry called rocket.ork, which is the design as XML, beside whatever else the design carries (motor files, a preview image). Older versions wrote the XML gzipped, and a plain XML file is accepted too. The format documentation calls all three .ork. Nothing here touches the filesystem: the caller hands over the bytes.

Structs§

Attachment
An entry of a .ork archive that is not the design document, kept as it was stored.
Unpacked
A .ork file unpacked: the design document as text, and everything else that came with it.

Enums§

Container
The three ways a .ork file packages its design document.

Constants§

MAX_UNPACKED_BYTES
How many bytes unpack will decompress out of one archive, over all its entries.

Functions§

unpack
Unpacks bytes, whichever of the three containers they are in.
unpack_within
Unpacks bytes, decompressing at most budget bytes out of the archive.