openDICOM.NET API Reference (openDICOM# Class Library)

TransferSyntax.CorrectByteOrdering Method (Int16)

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

public short CorrectByteOrdering(
   short word
);

Parameters

word
Signed word to process.

Return Value

Signed word with or without bytes swapped.

See Also

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