Bytes
public struct Bytes : Regular
Memory layout of a type, without any detail about parts.
-
The minimum alignment of an instance. Always a power of 2.
Declaration
Swift
let alignment: Int -
The number of bytes occupied by an instance.
Declaration
Swift
let size: Int -
The number of bytes between the beginnings of consecutive array elements.
Declaration
Swift
var stride: Int { get } -
Returns the layout of the tuple
(S, T), whereSandTare types whose layout is represented byselfandtrespectively.Note
theTinstance is storedt.sizebytes before the end of the tuple.Declaration
Swift
public func appending(_ t: `Self`) -> TypeLayout.Bytes
View on GitHub