Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
Swap16(), Swap16(), Swap32()


Member functions


Swap32()

static IMPORT_C 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()

static IMPORT_C 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()

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.