Skip to main content

2 docs tagged with "offsetof"

View all tags

Alignment and offsetof

Every type has an alignment: an address it must start on, always a power of two. char can live

Padding and offsetof

This page is the low-level / ABI view: how padding affects a struct's on-the-wire byte layout,