allocate<T extends NativeType> function

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

Implementation

Pointer<T> allocate<T extends NativeType>(int count) {
  return calloc.allocate<T>(count * sizeOf<Pointer>());
}