Skip to content

struct flake::PropArrayHandle ​

POD handle that locates a PropArray's slice in the pool. More...

#include <platform/flake/PropertyPool.hpp>

Public Attributes ​

Name
uint8_tid
Owner id in [1, FLAKE_MAX_PROPARRAYS], 0 = unregistered.
uint16_tseqOffset
Start position in the pool's sequence index.
uint16_tcount
Number of properties owned.

Detailed Description ​

cpp
struct flake::PropArrayHandle;

POD handle that locates a PropArray's slice in the pool.

A [PropArray](/embed/2.2.0/API/Classes/classflake_1_1PropArray.md) holds one of these as a member and passes its address to every [PropertyPool](/embed/2.2.0/API/Classes/classflake_1_1PropertyPool.md) entry point. The pool keeps a registry of live handles and updates seqOffset in place whenever a mutation on a differentPropArray shifts the global sequence index.

The handle is zero-initialisable: a freshly zero-initialised handle has id == 0, meaning "not registered". Registration is explicit via [PropertyPool::registerInstance](/embed/2.2.0/API/Classes/classflake_1_1PropertyPool.md#function-registerinstance).

Public Attributes Documentation ​

variable id ​

cpp
uint8_t flake::PropArrayHandle::id

Owner id in [1, FLAKE_MAX_PROPARRAYS], 0 = unregistered.

variable seqOffset ​

cpp
uint16_t flake::PropArrayHandle::seqOffset

Start position in the pool's sequence index.

variable count ​

cpp
uint16_t flake::PropArrayHandle::count

Number of properties owned.