openDICOM.NET API Reference (openDICOM# Class Library)

TransferSyntax.CorrectByteOrdering Method (UInt16)

Determines whether the bytes of an unsigned word have to be swapped according to the used transfer syntax. There is considered the endian type of underlying machine and transfer syntax.

public ushort CorrectByteOrdering(
   ushort word
);

Parameters

word
Unsigned word to process.

Return Value

Unsigned word with or without bytes swapped.

See Also

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