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>

Available on Allocator, provided by the AllocatorAlloc extension

Allocates sizeOf<T>() * count bytes of memory using allocate.