align8<T extends Struct> method

Pointer<T> align8<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> align8<T extends Struct>({int count = 1}) {
  return allocAligned<T>(sizeOf<Int64>(), 8, count: count);
}