ByteOrder Class Reference

#include <es_sock.h>

Link against: esock.lib

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

Detailed Description

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

Member Function Documentation

Swap16 ( TUint16 )

IMPORT_C TUint16Swap16(TUint16aVal)[static]

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

ParameterDescription
aValThe value to reverse.

Returns: The reversed value.

Swap16 ( TUint )

TUint16 Swap16(TUintaVal)[static, inline]

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

ParameterDescription
aValThe value to reverse.

Returns: The reversed value.

Swap32 ( TUint32 )

IMPORT_C TUint32Swap32(TUint32aVal)[static]

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

ParameterDescription
aValThe value to reverse.

Returns: The reversed value.