Engine → Assets → cooked_blob.h
cooked_blob_header
| Type | Struct |
| Namespace | conjure::assets |
| Include File Path | engine/include/conjure/assets/cooked_blob.h |
| Source File Path | engine/src/assets/cooked_blob.cpp |
| API ↗ | Cooking, caches and packs |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | dependency | u32 | 0 | |
| public | flags | u32 | 0 | |
| public | format | u32 | COOKED_ | |
| public | id | asset_id | {} | |
| public | importer | u32 | 0 | |
| public | MAGIC | static constexpr std:: | {'C', | |
| public | PAYLOAD_ | static constexpr usize | 16 | |
| public | payloadHash | u64 | 0 | |
| public | payloadSize | u64 | 0 | |
| public | settingsHash | u64 | 0 | |
| public | SIZE | static constexpr usize | 80 | |
| public | sourceHash | u64 | 0 | |
| public | type | asset_type_id | asset_ | |
| public | typeVersion | u32 | 0 |
Functions
Public
payload_offset
payload_offset[[nodiscard]] constexpr u64 payload_offset() const noexcept;Offset of the payload from the start of the blob: the header and the dependency list rounded up to 16 bytes.
total_size
total_size[[nodiscard]] constexpr u64 total_size() const noexcept;Total size of the serialised blob. Only meaningful for a consistent header (one built by make_cooked_blob or write_cooked_blob); validation of untrusted bytes compares the parts separately so a corrupt payloadSize cannot wrap the sum.