In Swift 4, the structure MemoryLayouttells you the tags size, strideand alignment.
I understand size and step, but not alignment really.
Is there an example that shows what alignment is, how it differs from a step, when it has a different meaning from a step, and where it would be wrong to use a step, but use alignment correctly?
Is it possible to always calculate one from the other?
algal source
share