Files
Graham Lee 9ead8781d4 Add .docc catalog to publish stdlib docs on swift.org
Co-authored-by: Alex Martini <amartini@apple.com>
Co-authored-by: Graham Lee <glee23@apple.com>
Co-authored-by: Chris Adamson <cadamson@apple.com>
Co-authored-by: Kirby Turner <kirby_turner@apple.com>
Co-authored-by: Paris Pinkney <ppinkney@apple.com>
Co-authored-by: Dave Spector <dspector@apple.com>
Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com>
Co-authored-by: Ethan Kusters <ekusters@apple.com>
Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com>
Co-authored-by: Adora Vaz <a_vaz@apple.com>
Co-authored-by: David Rönnqvist <ronnqvist@apple.com>
Co-authored-by: Nate Merseth Cook <natecook@apple.com>
Co-authored-by: Susan Conant <susan_c@apple.com>
2026-04-10 10:04:56 -04:00

26 lines
624 B
Markdown

# ``Swift/MemoryLayout``
## Topics
### Accessing the Layout of a Type
Use these static properties to access a type's layout. For example, the size of a
`Double` instance is `MemoryLayout<Double>.size`.
- ``Swift/MemoryLayout/size``
- ``Swift/MemoryLayout/alignment``
- ``Swift/MemoryLayout/stride``
### Accessing the Layout of a Value
Pass an instance to these static methods to acess the layout for that instance's
type.
- ``Swift/MemoryLayout/stride(ofValue:)``
- ``Swift/MemoryLayout/size(ofValue:)``
- ``Swift/MemoryLayout/alignment(ofValue:)``
### Querying Type Properties
- ``Swift/MemoryLayout/offset(of:)``