Location:
ES_SOCK.H
Link against: esock.lib
class BigEndian;
Description
Inserts and extracts integers in big-endian format.
Members
Defined in BigEndian
:
Get16()
, Get32()
, Put16()
, Put32()
static IMPORT_C 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.
|
|
static IMPORT_C 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.
|
|
static IMPORT_C 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.
|
|
static IMPORT_C 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.
|
|