Contents

alignment

The default memory alignment of T, in bytes.

Declaration

static var alignment: Int { get }

Discussion

Use the alignment property for a type when allocating memory using an unsafe pointer. This value is always positive.

See Also

Accessing the Layout of a Type