allocate<T extends NativeType> method
Allocates byteCount
bytes of memory on the native heap.
If alignment
is provided, the allocated memory will be at least aligned to alignment
bytes.
Throws an ArgumentError if the number of bytes or alignment cannot be satisfied.
Implementation
Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment});
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/Allocator/allocate.html