Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <ES_SOCK.H>
Link against: esock.lib

Class ByteOrder

class ByteOrder;

Description

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

Members

Defined in ByteOrder:


Member functions


Swap32(TUint32)

IMPORT_C static TUint32 Swap32(TUint32 aVal);

Description

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

Parameters

TUint32 aVal

The value to reverse.

Return value

TUint32

The reversed value.


Swap16(TUint16)

IMPORT_C static TUint16 Swap16(TUint16 aVal);

Description

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

Parameters

TUint16 aVal

The value to reverse.

Return value

TUint16

The reversed value.


Swap16(TUint)

static inline TUint16 Swap16(TUint aVal);

Description

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

Parameters

TUint aVal

The value to reverse.

Return value

TUint16

The reversed value.