The Bool is 1 byte, but there are 3 bytes of padding. Julia (and most other languages) pad structs to prevent memory alignment issues.
7 Likes
The Bool is 1 byte, but there are 3 bytes of padding. Julia (and most other languages) pad structs to prevent memory alignment issues.