Pointer<T extends NativeType>.allocate constructor

Pointer<T extends NativeType>.allocate({int count: 1 })

Allocate count elements of type T on the native heap via malloc() and return a pointer to the newly allocated memory.

Note that the memory is uninitialized.

Implementation

external factory Pointer.allocate({int count: 1});