openDICOM.NET API Reference (openDICOM# Class Library)

TransferSyntax.CorrectByteOrdering Method (Byte[])

Determines whether the bytes of an array have to be swapped according to the used transfer syntax. This method only is relevant to numeric representations as byte arrays. There is considered the endian type of underlying machine and transfer syntax.

public byte[] CorrectByteOrdering(
   byte[] bytes
);

Parameters

bytes
Byte array to process.

Return Value

Byte array with or without bytes swapped.

See Also

TransferSyntax Class | openDicom.Encoding Namespace | TransferSyntax.CorrectByteOrdering Overload List