openDICOM.NET API Reference (openDICOM# Class Library)

ByteConvert.SwapBytes Method

Changes between little and big endian byte ordering of an array of bytes and returns it.

Overload List

Changes between little and big endian byte ordering of an array of bytes and returns it.

public static byte[] SwapBytes(byte[]);

Changes between little and big endian byte ordering of a double and returns it.

public static double SwapBytes(double);

Changes between little and big endian byte ordering of a signed word and returns it.

public static short SwapBytes(short);

Changes between little and big endian byte ordering of a signed integer and returns it.

public static int SwapBytes(int);

Changes between little and big endian byte ordering of a signed long integer and returns it.

public static long SwapBytes(long);

Changes between little and big endian byte ordering of a single or float and returns it.

public static float SwapBytes(float);

Changes between little and big endian byte ordering of an unsigned word and returns it.

public static ushort SwapBytes(ushort);

Changes between little and big endian byte ordering of an unsigned integer and returns it.

public static uint SwapBytes(uint);

Changes between little and big endian byte ordering of an unsigned long integer and returns it.

public static ulong SwapBytes(ulong);

See Also

ByteConvert Class | openDicom.Encoding Namespace