Epok Engine

EPOK RUNTIME

epok::load_actor_bank

Function · 1 overload

Function

Loads actor bank as part of the actor tables module.

Belongs to
epok
Header
actor_tables.hpp
Overloads
1

Declaration

Declaration
inline size_t load_actor_bank(const ActorTable& table,ActorData* slots,size_t count)

Loads actor bank as part of the actor tables module.

ParameterTypeMeaning
tableconst ActorTable &Value supplied for table. Keep referenced or pointed-to data valid for the complete call.
slotsActorData *Value supplied for slots. Keep referenced or pointed-to data valid for the complete call.
countsize_tValue supplied for count. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "actor_tables.hpp"

// Assume these named values have been initialized with valid data:
// const ActorTable & table
// ActorData * slots
// size_t count

auto result = epok::load_actor_bank(table, slots, count);

Why use it

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

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/actor_tables.hpp:156

Related members