Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class BigEndian

class BigEndian;

Description

Inserts and extracts integers in big-endian format.

Members

Defined in BigEndian:


Member functions


Get32(const TUint8 *)

IMPORT_C static TUint32 Get32(const TUint8 *aPtr);

Description

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

Parameters

const TUint8 *aPtr

A pointer to a byte stream.

Return value

TUint32

A 32-bit long integer value in native machine format.


Get16(const TUint8 *)

IMPORT_C static TUint16 Get16(const TUint8 *aPtr);

Description

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

Parameters

const TUint8 *aPtr

A pointer to a byte stream.

Return value

TUint16

A 16-bit long integer value in native machine format.


Put32(TUint8 *,TUint32)

IMPORT_C 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 32-bit long integer value in native machine format.


Put16(TUint8 *,TUint16)

IMPORT_C 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 16-bit long integer value in native machine format.