allocate<T extends NativeType> method

  1. @override
Pointer<T> allocate<T extends NativeType>(
  1. int byteCount, {
  2. int? alignment,
})
override

Allocates byteCount bytes of memory on the native heap.

The parameter alignment is ignored.

Implementation

@override
Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
  return new Pointer<T>.fromAddress(_module.malloc(byteCount), this);
}