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
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. |