Epok Engine

EPOK RUNTIME

epok::PocketApp::save_offset

Field

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Field

Byte offset of Pocket Lua's 128-byte persistent save sector, or zero.

Belongs to
epok::PocketApp
Header
pocketstation.hpp

Declaration

Declaration
uint32_t save_offset

Byte offset of Pocket Lua's 128-byte persistent save sector, or zero.

Type
uint32_t
Storage
Per instance

Example sketch

C++ example
#include "pocketstation.hpp"

epok::PocketApp& object = /* obtain a valid instance */;
auto value = object.save_offset;

// When mutation is valid for this object:
// object.save_offset = replacement;

Trade-offs and warnings

Consult the linked header for the meaning, lifetime and permitted use of this declaration.

Declared in runtime/pocketstation.hpp:88