Product Type
MemoryLayout
The memory layout of a type, describing its size, stride, and alignment.
Members
Functions
static fun size() -> Int
The contiguous memory footprint of the T's instances, in bytes.
static fun alignment() -> Int
The preferred memory alignment of the T's instances, in bytes.
static fun stride() -> Int
The number of bytes from the start of one instance of T to the start of the next when stored in contiguous memory.