Function

aligned_alloc(_:_:)

Allocates size bytes of uninitialized storage whose alignment is specified by alignment.

Source
fun aligned_alloc(
   _ alignment: Int,
   _ size: Int
) -> MemoryAddress

Parameters

alignment

The alignment of the allocated memory. Must be a valid alignment supported by the implementation.

size

The number of bytes to allocate. Must be an integral multiple of alignment.