structAllocateInto method

  1. @override
void structAllocateInto(
  1. RaylibTemp<RaylibBase> temp,
  2. MemoryPointer<RType> p,
  3. String key
)
override

Allocates nested pointers into temp under key as needed.

Implementation

@override
void structAllocateInto(RaylibTemp temp, MemoryPointer p, String key) {
  if (recs.inner.isNotEmpty) {
    field_recs.allocate(temp, p, '${key}_recs', count: _recs.inner.length, raw: true);
  }
  if (glyphs.inner.isNotEmpty) {
    field_glyphs.allocate(temp, p, '${key}_glyphs', count: _glyphs.inner.length, raw: true);
  }
}