Skip to main content

4 docs tagged with "padding"

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 —

Memory Alignment

Data arranged at addresses that are multiples of its size. Required for correctness on some architectures, critical for performance on all.

Padding and offsetof

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