32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dcerror.h"
34 #include "dcmtk/dcmdata/dcxfer.h"
45 const E_ByteOrder newByteOrder,
46 const E_ByteOrder oldByteOrder,
48 const Uint32 byteLength,
49 const size_t valWidth);
58 const Uint32 byteLength,
59 const size_t valWidth);
65 Uint16 swapShort(
const Uint16 toSwap);
70 inline void swap2Bytes(Uint8 * toSwap)
73 Uint8 tmp = toSwap[0];
74 toSwap[0] = toSwap[1];
81 inline void swap4Bytes(Uint8 * toSwap)
84 Uint8 tmp = toSwap[0];
85 toSwap[0] = toSwap[3];
88 toSwap[1] = toSwap[2];