Skip to content

Engine → Assets

asset_pack.h

The export pack, content.cpak: a 64-byte header, a TOC sorted by uuid, a dependency table, a string table of asset paths and the payloads, each 16-byte aligned with identical payloads stored once. No timestamps, no absolute paths: two packs built from the same input are byte-identical.

Structs

File Description
pack_header Fixed header at offset 0 of the pack.
pack_stats What pack_writer::write produced.
pack_toc_entry One TOC entry (72 bytes on disk).
pack_writer::entry

Classes

File Description
pack_reader Reads a pack: the header, TOC, dependency and string tables are loaded and validated at open(); payloads are read positionally on demand from any thread.
pack_writer Collects blobs and writes a pack. Not thread-safe; used by the cooker on the main thread.