09-09-2022, 06:03 PM
And as far as padding is concerned, you shouldn't need any for _FLOAT.
32-bit data structures are padded on 4-byte chunks. 64-bit data structures are padded on 8-byte chunks. A _FLOAT is 32-bytes and fits perfectly into both those patterns. Just make certain to count 32-bytes for the size, without getting confused over the fact that we're only currently using part of it.
32-bit data structures are padded on 4-byte chunks. 64-bit data structures are padded on 8-byte chunks. A _FLOAT is 32-bytes and fits perfectly into both those patterns. Just make certain to count 32-bytes for the size, without getting confused over the fact that we're only currently using part of it.