Array<T extends NativeType> constructor

Array<T extends NativeType>(
  1. dynamic length,
  2. [Pointer<T> allocate(
    1. {int count}
    ) = ffi.allocate]
)

Implementation

Array(this.length, [Allocator allocate = ffi.allocate])
    : ptr = allocate<T>(count: length);