CodePudding user response:
https://blog.csdn.net/a22422931/article/details/64929815CodePudding user response:
The union{
Int testWord;
Char testByte [4].
} endianTest;
CodePudding user response:
Int x=0 xff01;
Reinterpret_cast & lt; LPBYTE> (& amp; X) to get a pointer, can + + access to every byte of an int value, need to pay attention to the byte order, on x86, the above code is to access 0 x01 first,