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 108 of file LiveArena.hpp.

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

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: