Is there a way to enforce specific endianness for a C or C++ struct?

前端 未结 11 1222
南方客
南方客 2020-12-13 09:24

I\'ve seen a few questions and answers regarding to the endianness of structs, but they were about detecting the endianness of a system, or converting data between the two d

11条回答
  •  -上瘾入骨i
    2020-12-13 10:05

    A possible innovative solution would be to use a C interpreter like Ch and force the endian coding to big.

提交回复
热议问题