What does the following statement actually do and what are it's effects?
#pragma pack(push,8)
It pushes the current pack
setting onto a stack (so that you can restore it later via pop
) and then sets the alignment for struct elements to 8 bytes. Anything which is not naturally aligned to an 8 byte boundary will have padding bytes inserted before it to maintain the required alignment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With