Skip to main content

3 docs tagged with "memory-layout"

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

Class Memory Layout

This page explains how the class features you write — members, virtual functions, inheritance —

Padding and offsetof

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