structAlloc<X extends RaylibStruct<X>> method

RaylibTempStructAllocator<X>? structAlloc<X extends RaylibStruct<X>>()

Returns the struct allocator registered under struct type X.

Implementation

RaylibTempStructAllocator<X>? structAlloc<X extends RaylibStruct<X>>()
  => (_builtInStructAllocators[X] ?? _customStructAllocators[X]) as RaylibTempStructAllocator<X>?;