Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: ES_SOCK.H
Link against: esock.lib

Class LittleEndian

class LittleEndian;

Description

Inserts and extracts integers in little-endian format.

Members

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


Member functions


Get32()

static IMPORT_C TUint32 Get32(const TUint8 *aPtr);

Description

Gets a 32-bit integer value which is in little-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()

static IMPORT_C TUint16 Get16(const TUint8 *aPtr);

Description

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

Parameters

const TUint8 *aPtr

A pointer to a byte stream.

Return value

TUint16

A 16-bit long in native machine format.


Put32()

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

Description

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

Parameters

TUint8 *aPtr

A pointer to a byte stream

TUint32 aVal

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


Put16()

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

Description

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

Parameters

TUint8 *aPtr

A pointer to a byte stream.

TUint16 aVal

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