Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
AssetLookupTable.h File Reference

Binary asset lookup table for embedded runtime. More...

Classes

class  Deki::AssetLookupTable

Namespaces

namespace  Deki

Detailed Description

Binary asset lookup table for embedded runtime.

Provides O(log n) lookup of "path:type" -> GUID using a sorted binary table. Zero heap allocation - just stores a pointer to the loaded table data.

Binary format (created by AssetExporter::ExportAssetLookupTable):

  • [4 bytes] entry count (uint32_t)
  • [N entries, each 44 bytes, sorted by hash]:
    • [4 bytes] FNV-1a hash of "path:type" (uint32_t)
    • [37 bytes] GUID string (null-terminated)
    • [3 bytes] padding