We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
You can mark a pointer as being packed: __packed short* pUnalignedHalfWord = (__packed short*) xyz;So if you had a structure:__packed struct MyStruct_t{ char a; short b;};MyStruct_t foo;__packed short* pUnalignedHalfWord = (__packed short*) &(foo.;
__packed short* pUnalignedHalfWord = (__packed short*) xyz;
__packed struct MyStruct_t{ char a; short b;};MyStruct_t foo;__packed short* pUnalignedHalfWord = (__packed short*) &(foo.;