allocate method

void allocate(
  1. RaylibTemp<RaylibBase> temp,
  2. MemoryPointer<RType> p,
  3. String key, {
  4. int count = 1,
  5. bool raw = false,
})
inherited

Allocates any backing storage for a value at p, using temp and identified by key. count and raw are for codecs that allocate arrays or need unmanaged memory.

No-op by default: most codecs (scalar, enum, struct) don't own pointers, so there's nothing to allocate.

Implementation

void allocate(RaylibTemp temp, MemoryPointer p, String key, {int count = 1, bool raw = false}) {
  // no-op by default, most codecs (Scalar, Enum, Struct) don't own
  // pointers, so there's nothing to allocate.
}