Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
es::skeletal::StringBuffer Class Reference

#include <SkeletalModule.hpp>

Public Member Functions

const char * publish (const char *text)
template<class Fn>
const char * publishArray (int count, Fn nameAt)
 ["a","b"] from an indexed getter — how name lists cross the boundary.
std::string & raw ()

Detailed Description

Storage behind every const char* this module returns.

One buffer, overwritten per call: the SDK copies what it reads before calling again, which is the contract on both sides of the boundary.

Definition at line 258 of file SkeletalModule.hpp.

Member Function Documentation

◆ publish()

const char * es::skeletal::StringBuffer::publish ( const char * text)
inline

Definition at line 260 of file SkeletalModule.hpp.

◆ publishArray()

template<class Fn>
const char * es::skeletal::StringBuffer::publishArray ( int count,
Fn nameAt )
inline

["a","b"] from an indexed getter — how name lists cross the boundary.

Definition at line 267 of file SkeletalModule.hpp.

◆ raw()

std::string & es::skeletal::StringBuffer::raw ( )
inline

Direct access, for a shape the helpers above do not cover (the constraint map, say). Assign to it, then return c_str() — same lifetime rule.

Definition at line 282 of file SkeletalModule.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/bindings/modules/spine/SkeletalModule.hpp