4 ms·
> If I declare a value type with 32-bit floats x, y and z, the in-memory representation for that struct contains exactly 12 bytes, arranged in the obvious way.
by msla 1y ago
> If I declare a value type with 32-bit floats x, y and z, the in-memory representation for that struct contains exactly 12 bytes, arranged in the obvious way. Nothing more, nothing less.
C doesn't even give you this. See: "The Lost Art Of Structure Packing"
http://www.catb.org/esr/structure-packing/ http://www.catb.org/esr/structure-packing/