Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

padding

Unused bytes the compiler adds so fields line up.

Padding is unused space inserted between or after fields to meet alignment requirements.

Loading interactive…

Examples

  • std::mem::size_of::<(i32, u8)>() is 8, not 5: the i32 takes bytes 0 to 3, the u8 byte 4, and 3 bytes of padding follow.

Read the full section →