Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: es_sock.h
Link against: esock.lib

Class BigEndian

BigEndian

Support

Supported from 5.0

Description

Inserts and extract integers in big-endian format.

Defined in BigEndian:
Get16(), Get32(), Put16(), Put32()


Getting values


Get32()

static TUint32 Get32(const TUint8* aPtr);

Description

Gets a 32-bit integer value which is in big-endian format from a byte stream.

Parameters

TUint8* aPtr

A pointer to a byte stream

Return value

TUint32

A 32-bit long in native machine format.


Get16()

static TUint16 Get16(const TUint8* aPtr);

Description

Gets a 16-bit value integer which is in big-endian format from a byte stream.

Parameters

TUint8* aPtr

A pointer to a byte stream

Return value

TUint16

A 16-bit long in native machine format.

[Top]


Putting values


Put32()

static void Put32(TUint8* aPtr, TUint32 aVal);

Description

Inserts a 32-bit value into a byte stream in big-endian format.

Parameters

TUint8* aPtr

A pointer to a byte stream

TUint32 aVal

A native machine format 32-bit long value


Put16()

static void Put16(TUint8* aPtr, TUint16 aVal);

Description

Inserts a 16-bit value into a byte stream in big-endian format.

Parameters

TUint8* aPtr

A pointer to a byte stream

TUint16 aVal

A native machine format 16-bit word value