📄 swapbyte.cwp.lib
字号:
SWAPBYTE - Functions to SWAP the BYTE order of binary data swap_short_2 swap a short integerswap_u_short_2 swap an unsigned short integerswap_int_4 swap a 4 byte integerswap_u_int_4 swap an unsigned integerswap_long_4 swap a long integerswap_u_long_4 swap an unsigned long integerswap_float_4 swap a floatswap_double_8 swap a doubleFunction Prototypes:void swap_short_2(short *tni2);void swap_u_short_2(unsigned short *tni2);void swap_int_4(int *tni4);void swap_u_int_4(unsigned int *tni4);void swap_long_4(long *tni4);void swap_u_long_4(unsigned long *tni4);void swap_float_4(float *tnf4);void swap_double_8(double *tndd8);Notes:These routines are necessary for reversing the byte order of binary datafor transportation between big-endian and little-endian machines. Examplesof big-endian machines are IBM RS6000, SUN, NeXT. Examples of littleendian machines are PC's and DEC.These routines have been tested with PC data and run on PC's runningseveral PC versions of UNIX, but have not been tested on DEC.Also, the number appended to the name of the routine refers to thenumber of bytes that the item is assumed to be.Authors: Jens Hartmann, Institut fur Geophysik, Hamburg, Jun 1993 John Stockwell, CWP, Colorado School of Mines, Jan 1994
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -