MayaFlux 0.4.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 104 of file LiveArena.hpp.

105 {
106 auto* hdr = live_arena_header();
107 for (uint32_t i = 0; i < hdr->entry_count; ++i) {
108 if (hdr->entries[i].occupied
109 && std::strncmp(hdr->entries[i].key, key, LIVE_ARENA_KEY_MAX) == 0) {
110 return &hdr->entries[i];
111 }
112 }
113 return nullptr;
114 }
LiveArenaHeader * live_arena_header() noexcept
Returns a pointer to the header block at the start of arena storage.
Definition LiveArena.hpp:79

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: