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

◆ expose_live() [2/2]

template<typename T >
bool MayaFlux::expose_live ( const char *  key,
T *  ptr 
)
noexcept

Exposes an existing raw pointer to the live arena under key.

Lifetime management remains entirely the caller's responsibility. The arena stores a no-op shared_ptr so live_cast returns a valid shared_ptr without affecting the object's actual lifetime.

Template Parameters
TType of the object.
Parameters
keyNull-terminated string used to locate the object from the JIT.
ptrRaw pointer to the existing object.
Returns
true on success, false if key is already registered or the directory is full.

Definition at line 350 of file LiveArena.hpp.

351{
352 return internal::live_arena_expose(key, std::shared_ptr<void>(ptr, [](void*) { }));
353}
const uint8_t * ptr

References MayaFlux::internal::live_arena_expose(), and ptr.

+ Here is the call graph for this function: