MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ live_arena_find()

LiveArenaEntry * MayaFlux::internal::live_arena_find ( const char *  key)
inlinenoexcept

Locates an existing directory entry by key.

Returns
Pointer to the matching entry, or nullptr if not found.

Definition at line 128 of file LiveArena.hpp.

129 {
130 auto* hdr = live_arena_header();
131 for (uint32_t i = 0; i < hdr->entry_count; ++i) {
132 if (hdr->entries[i].occupied
133 && std::strncmp(hdr->entries[i].key, key, LIVE_ARENA_KEY_MAX) == 0) {
134 return &hdr->entries[i];
135 }
136 }
137 return nullptr;
138 }
LiveArenaHeader * live_arena_header() noexcept
Returns a pointer to the header block at the start of arena storage.

References live_arena_header(), and LIVE_ARENA_KEY_MAX.

Referenced by live_arena_alloc(), and live_arena_expose().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: