call<T extends NativeType> method

Pointer<T> call<T extends NativeType>([
  1. int count = 1
])

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

Since this calls sizeOf<T> internally, an exception will be thrown if this method is called with an @unsized type or before Memory.init was called.

Implementation

Pointer<T> call<T extends NativeType>([int count = 1]) =>
    allocate(sizeOf<T>() * count);