C语言:尾端无关的代码

    技术2022-05-14  3

    从数据流中读big endian的浮点数。要写一个与尾端无关的代码。要点是用union。

     

     

    参考

     

    [1] Writing Endian Independent Code in C++

    http://www.gamedev.net/page/reference/index.html/_/reference/programming/sweet-snippets/writing-endian-independent-code-in-c-r2091

     


    最新回复(0)