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
.orkarchive that is not the design document, kept as it was stored. - Unpacked
- A
.orkfile unpacked: the design document as text, and everything else that came with it.
Enums§
- Container
- The three ways a
.orkfile packages its design document.
Constants§
- MAX_
UNPACKED_ BYTES - How many bytes
unpackwill 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 mostbudgetbytes out of the archive.