[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
#pragma pack(push,16) struct _TEST { int a; }; #pragma pack(pop) { int x ... _TEST test; BYTE Buffer[1024] }
typedef struct _MyStruct { int x; ... uint idx; BYTE Byffer[15 + 1024]; //15字节用于动态调整 } MyStruct, *PMyStruct;
UINT i; i = 0x00403004 % 0x10; if (i) idx = 16 - i; else idx = 0;