Skip to content

Struct Layout #113318

Answered by EgorBo
Silencersn asked this question in Q&A
Mar 10, 2025 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

@Silencersn Yes, but it's an implementation detail - you should not rely on offsets/sizes or do reinterp-like casts for structs with Auto layout

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@huoyaoyuan
Comment options

@EgorBo
Comment options

EgorBo Mar 10, 2025
Collaborator

@huoyaoyuan
Comment options

@colejohnson66
Comment options

@jkotas
Comment options

jkotas Mar 14, 2025
Collaborator

Answer selected by Silencersn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants