align16<T extends Struct> method

Pointer<T> align16<T extends Struct>({
  1. int count = 1,
})

Helper methods for common alignments

  • count: The number of elements to allocate (default is 1) Returns a pointer to the allocated memory

Implementation

Pointer<T> align16<T extends Struct>({int count = 1}) {
  return allocAligned<T>(16, 16, count: count);
}