If you have the option, use standard library functions to do byte-swapping operations, and standardize on the order in which bytes are stored in your data files; network byte order is the best.
如果可以选择的话,请使用标准库函数来进行字节交换操作,并按照字节在数据文件中存储的顺序进行标准化;网络字节顺序最适合这种工作。
Unless you spend a huge amount of time doing byte-swapping, just write the code cleanly.
除非您花费大量时间来进行字节交换,否则就只需要清楚地编写代码即可。
Unless you spend a huge amount of time doing byte-swapping, just write the code cleanly.
除非您花费大量时间来进行字节交换,否则就只需要清楚地编写代码即可。
应用推荐