Daily iOS
Memory and ARC

Memory layout

What are MemoryLayout<T>.size, stride, and alignment, and why can the three differ? Use the struct below as your example.

struct A { var a: Bool; var b: Int64; var c: Bool }

Submit