Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
byteswap.h
Go to the documentation of this file.
1
2#ifndef BYTESWAP_H
3#define BYTESWAP_H
4
5#include "longdef.h"
6
7//------------------------ Byte Swap Routines -------------------------
8
9// swap bytes in a short (2 byte) variable
10void ByteSwapShort( short *shortNumber );
11
12// swap bytes in an int (4 byte) variable
13void ByteSwapLong( AXGLONG *longNumber );
14
15// swap bytes in a float (4 byte) variable
16void ByteSwapFloat( float *floatNumber );
17
18// swap bytes in a double (8 byte) variable
19void ByteSwapDouble( double *doubleNumber );
20
21// swap bytes in a short (2 byte) array
22void ByteSwapShortArray( short *shortArray, int arraySize );
23
24// swap bytes in an int (4 byte) array
25void ByteSwapLongArray( AXGLONG *longArray, int arraySize );
26
27// swap bytes in a float (4 byte) array
28void ByteSwapFloatArray( float *floatArray, int arraySize );
29
30// swap bytes in a double (8 byte) array
31void ByteSwapDoubleArray( double *doubleArray, int arraySize );
32
33
34#endif
void ByteSwapLongArray(AXGLONG *longArray, int arraySize)
void ByteSwapFloatArray(float *floatArray, int arraySize)
void ByteSwapShortArray(short *shortArray, int arraySize)
void ByteSwapLong(AXGLONG *longNumber)
void ByteSwapFloat(float *floatNumber)
void ByteSwapShort(short *shortNumber)
void ByteSwapDouble(double *doubleNumber)
void ByteSwapDoubleArray(double *doubleArray, int arraySize)
#define AXGLONG
Definition longdef.h:11