ByteOrder Class Reference

class ByteOrder

Reverses the byte order in 16 and 32-bit values.

Public Member Functions
IMPORT_C TUint16Swap16(TUint16)
TUint16 Swap16(TUint)
IMPORT_C TUint32Swap32(TUint32)

Member Functions Documentation

Swap16(TUint16)

IMPORT_C TUint16Swap16(TUint16aVal)[static]

Reverses the order of the bytes in a 16-bit value.

Parameters

TUint16 aValThe value to reverse.

Swap16(TUint)

TUint16 Swap16(TUintaVal)[static, inline]

Reverses the order of the bytes in a 16-bit value.

Parameters

TUint aValThe value to reverse.

Swap32(TUint32)

IMPORT_C TUint32Swap32(TUint32aVal)[static]

Reverses the order of the bytes in a 32-bit value.

Parameters

TUint32 aValThe value to reverse.