Epok Engine

EPOK RUNTIME

epok::utility_actor_data

Function · 1 overload

Function

Performs `utility actor data` as part of the utility module.

Belongs to
epok
Header
utility.hpp
Overloads
1

Declaration

Declaration
inline ActorData* utility_actor_data(ObjectId id)

Performs `utility actor data` as part of the utility module.

ParameterTypeMeaning
idObjectIdValue supplied for id. Keep referenced or pointed-to data valid for the complete call.

Returns: ActorData *. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// ObjectId id

auto result = epok::utility_actor_data(id);

Why use it

It provides direct, allocation-conscious access to the utility module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/utility.hpp:155

Related members