LibBeamApi  1.3.0
Macros | Functions
BEndian.h File Reference
#include <byteswap.h>
#include <BTypes.h>

Macros

#define htobe16(x)   __bswap_16 (x)
 
#define htole16(x)   (x)
 
#define be16toh(x)   __bswap_16 (x)
 
#define le16toh(x)   (x)
 
#define htobe32(x)   __bswap_32 (x)
 
#define htole32(x)   (x)
 
#define be32toh(x)   __bswap_32 (x)
 
#define le32toh(x)   (x)
 
#define htobe64(x)   __bswap_64 (x)
 
#define htole64(x)   (x)
 
#define be64toh(x)   __bswap_64 (x)
 
#define le64toh(x)   (x)
 

Functions

void bswap_p8 (const void *s, void *d)
 
void bswap_p16 (const void *s, void *d)
 
void bswap_p32 (const void *s, void *d)
 
void bswap_p64 (const void *s, void *d)
 
void bswap_copy (int swap, const void *src, void *dst, BUInt32 nBytes, const char *swapType)
 
uint16_t htole (uint16_t v)
 
int16_t htole (int16_t v)
 
uint32_t htole (uint32_t v)
 
int32_t htole (int32_t v)
 
uint64_t htole (uint64_t v)
 
int64_t htole (int64_t v)
 
double htole (double v)
 
float htole (float v)
 
uint16_t htobe (uint16_t v)
 
int16_t htobe (int16_t v)
 
uint32_t htobe (uint32_t v)
 
int32_t htobe (int32_t v)
 
uint64_t htobe (uint64_t v)
 
int64_t htobe (int64_t v)
 
double htobe (double v)
 
float htobe (float v)
 
uint16_t letoh (uint16_t v)
 
int16_t letoh (int16_t v)
 
uint32_t letoh (uint32_t v)
 
int32_t letoh (int32_t v)
 
uint64_t letoh (uint64_t v)
 
int64_t letoh (int64_t v)
 
double letoh (double v)
 
float letoh (float v)
 
uint16_t betoh (uint16_t v)
 
int16_t betoh (int16_t v)
 
uint32_t betoh (uint32_t v)
 
int32_t betoh (int32_t v)
 
uint64_t betoh (uint64_t v)
 
int64_t betoh (int64_t v)
 
double betoh (double v)
 
float betoh (float v)
 

Macro Definition Documentation

#define be16toh (   x)    __bswap_16 (x)
#define be32toh (   x)    __bswap_32 (x)
#define be64toh (   x)    __bswap_64 (x)
#define htobe16 (   x)    __bswap_16 (x)
#define htobe32 (   x)    __bswap_32 (x)
#define htobe64 (   x)    __bswap_64 (x)
#define htole16 (   x)    (x)
#define htole32 (   x)    (x)
#define htole64 (   x)    (x)
#define le16toh (   x)    (x)
#define le32toh (   x)    (x)
#define le64toh (   x)    (x)

Function Documentation

uint16_t betoh ( uint16_t  v)
inline
int16_t betoh ( int16_t  v)
inline
uint32_t betoh ( uint32_t  v)
inline
int32_t betoh ( int32_t  v)
inline
uint64_t betoh ( uint64_t  v)
inline
int64_t betoh ( int64_t  v)
inline
double betoh ( double  v)
inline
float betoh ( float  v)
inline
void bswap_copy ( int  swap,
const void *  src,
void *  dst,
BUInt32  nBytes,
const char *  swapType 
)
void bswap_p16 ( const void *  s,
void *  d 
)
inline
void bswap_p32 ( const void *  s,
void *  d 
)
inline
void bswap_p64 ( const void *  s,
void *  d 
)
inline
void bswap_p8 ( const void *  s,
void *  d 
)
inline
uint16_t htobe ( uint16_t  v)
inline
int16_t htobe ( int16_t  v)
inline
uint32_t htobe ( uint32_t  v)
inline
int32_t htobe ( int32_t  v)
inline
uint64_t htobe ( uint64_t  v)
inline
int64_t htobe ( int64_t  v)
inline
double htobe ( double  v)
inline
float htobe ( float  v)
inline
uint16_t htole ( uint16_t  v)
inline
int16_t htole ( int16_t  v)
inline
uint32_t htole ( uint32_t  v)
inline
int32_t htole ( int32_t  v)
inline
uint64_t htole ( uint64_t  v)
inline
int64_t htole ( int64_t  v)
inline
double htole ( double  v)
inline
float htole ( float  v)
inline
uint16_t letoh ( uint16_t  v)
inline
int16_t letoh ( int16_t  v)
inline
uint32_t letoh ( uint32_t  v)
inline
int32_t letoh ( int32_t  v)
inline
uint64_t letoh ( uint64_t  v)
inline
int64_t letoh ( int64_t  v)
inline
double letoh ( double  v)
inline
float letoh ( float  v)
inline