Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <endian.h>

bswap16

Interface status: externallyDefinedApi

bswap16 (x) __bswap16(x)

Description

General byte order swapping functions.

Parameters

x

[Top]


bswap32

Interface status: externallyDefinedApi

bswap32 (x) __bswap32(x)

Description

General byte order swapping functions.

Parameters

x

[Top]


bswap64

Interface status: externallyDefinedApi

bswap64 (x) __bswap64(x)

Description

General byte order swapping functions.

Parameters

x

[Top]


htobe16

Interface status: externallyDefinedApi

htobe16 (x) bswap16((x))

Description

Macro returning a integer in the system's native byte order converted to big endian byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


htobe32

Interface status: externallyDefinedApi

htobe32 (x) bswap32((x))

Description

Macro returning a integer in the system's native byte order converted to big endian byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


htobe64

Interface status: externallyDefinedApi

htobe64 (x) bswap64((x))

Description

Macro returning a integer in the system's native byte order converted to big endian byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


htole16

Interface status: externallyDefinedApi

htole16 (x) ((uint16_t)(x))

Description

Macro returning a integer in the system's native byte order converted to big endian byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


htole32

Interface status: externallyDefinedApi

htole32 (x) ((uint32_t)(x))

Description

Macro returning a integer in the system's native byte order converted to big endian byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


htole64

Interface status: externallyDefinedApi

htole64 (x) ((uint64_t)(x))

Description

Macro returning a integer in the system's native byte order converted to big endian byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


be16toh

Interface status: externallyDefinedApi

be16toh (x) bswap16((x))

Description

Macro returning a big endian byte ordered integer converted to the system's native byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


be32toh

Interface status: externallyDefinedApi

be32toh (x) bswap32((x))

Description

Macro returning a big endian byte ordered integer converted to the system's native byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


be64toh

Interface status: externallyDefinedApi

be64toh (x) bswap64((x))

Description

Macro returning a big endian byte ordered integer converted to the system's native byte order. The return value will be the same as the argument on big endian systems.

Parameters

x

[Top]


le16toh

Interface status: externallyDefinedApi

le16toh (x) ((uint16_t)(x))

Description

Macro returning a little endian byte ordered integer converted to the system's native byte order. The return value will be the same as the argument on little endian systems.

Parameters

x

[Top]


le32toh

Interface status: externallyDefinedApi

le32toh (x) ((uint32_t)(x))

Description

Macro returning a little endian byte ordered integer converted to the system's native byte order. The return value will be the same as the argument on little endian systems.

Parameters

x

[Top]


le64toh

Interface status: externallyDefinedApi

le64toh (x) ((uint64_t)(x))

Description

Macro returning a little endian byte ordered integer converted to the system's native byte order. The return value will be the same as the argument on little endian systems.

Parameters

x

[Top]


be16dec(const void *)

static inline uint16_t be16dec(const void *pp);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

const void *pp

Return value

uint16_tuint16_t

[Top]


be32dec(const void *)

static inline uint32_t be32dec(const void *pp);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

const void *pp

Return value

uint32_tuint32_t

[Top]


be64dec(const void *)

static inline uint64_t be64dec(const void *pp);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

const void *pp

Return value

uint64_tuint64_t

[Top]


le16dec(const void *)

static inline uint16_t le16dec(const void *pp);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

const void *pp

Return value

uint16_tuint16_t

[Top]


le32dec(const void *)

static inline uint32_t le32dec(const void *pp);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

const void *pp

Return value

uint32_tuint32_t

[Top]


le64dec(const void *)

static inline uint64_t le64dec(const void *pp);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

const void *pp

Return value

uint64_tuint64_t

[Top]


be16enc(void *,uint16_t)

static inline void be16enc(void *pp, uint16_t u);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

void *pp

uint16_tuint16_t u

[Top]


be32enc(void *,uint32_t)

static inline void be32enc(void *pp, uint32_t u);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

void *pp

uint32_tuint32_t u

[Top]


be64enc(void *,uint64_t)

static inline void be64enc(void *pp, uint64_t u);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

void *pp

uint64_tuint64_t u

[Top]


le16enc(void *,uint16_t)

static inline void le16enc(void *pp, uint16_t u);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

void *pp

uint16_tuint16_t u

[Top]


le32enc(void *,uint32_t)

static inline void le32enc(void *pp, uint32_t u);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

void *pp

uint32_tuint32_t u

[Top]


le64enc(void *,uint64_t)

static inline void le64enc(void *pp, uint64_t u);

Description

Alignment-agnostic encode or decode bytestream to or from little or big endian.

Parameters

void *pp

uint64_tuint64_t u