Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: es_sock.h
Link against: esock.lib

Class ByteOrder

ByteOrder

Support

Supported from 5.0

Description

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

Defined in ByteOrder:
Swap16(), Swap32()


Reverse byte order


Swap16()

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.


Swap32()

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.