AllocatorAlloc extension

Extension on Allocator to provide allocation with NativeType.

on
Annotations
  • @Since('2.12')

Methods

call<T extends SizedNativeType>([int count = 1]) Pointer<T>
Allocates sizeOf<T>() * count bytes of memory using allocate.