Electronics and Software
Engineering Innovation
Beam-lib  2.15.1
BEndian.h File Reference
#include <BTypes.h>
#include <byteswap.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

◆ be16toh

#define be16toh (   x)    __bswap_16 (x)

◆ be32toh

#define be32toh (   x)    __bswap_32 (x)

◆ be64toh

#define be64toh (   x)    __bswap_64 (x)

◆ htobe16

#define htobe16 (   x)    __bswap_16 (x)

◆ htobe32

#define htobe32 (   x)    __bswap_32 (x)

◆ htobe64

#define htobe64 (   x)    __bswap_64 (x)

◆ htole16

#define htole16 (   x)    (x)

◆ htole32

#define htole32 (   x)    (x)

◆ htole64

#define htole64 (   x)    (x)

◆ le16toh

#define le16toh (   x)    (x)

◆ le32toh

#define le32toh (   x)    (x)

◆ le64toh

#define le64toh (   x)    (x)

Function Documentation

◆ betoh() [1/8]

uint16_t betoh ( uint16_t  v)
inline

◆ betoh() [2/8]

int16_t betoh ( int16_t  v)
inline

◆ betoh() [3/8]

uint32_t betoh ( uint32_t  v)
inline

◆ betoh() [4/8]

int32_t betoh ( int32_t  v)
inline

◆ betoh() [5/8]

uint64_t betoh ( uint64_t  v)
inline

◆ betoh() [6/8]

int64_t betoh ( int64_t  v)
inline

◆ betoh() [7/8]

double betoh ( double  v)
inline

◆ betoh() [8/8]

float betoh ( float  v)
inline

◆ bswap_copy()

void bswap_copy ( int  swap,
const void *  src,
void *  dst,
BUInt32  nBytes,
const char *  swapType 
)

◆ bswap_p16()

void bswap_p16 ( const void *  s,
void *  d 
)
inline

◆ bswap_p32()

void bswap_p32 ( const void *  s,
void *  d 
)
inline

◆ bswap_p64()

void bswap_p64 ( const void *  s,
void *  d 
)
inline

◆ bswap_p8()

void bswap_p8 ( const void *  s,
void *  d 
)
inline

◆ htobe() [1/8]

uint16_t htobe ( uint16_t  v)
inline

◆ htobe() [2/8]

int16_t htobe ( int16_t  v)
inline

◆ htobe() [3/8]

uint32_t htobe ( uint32_t  v)
inline

◆ htobe() [4/8]

int32_t htobe ( int32_t  v)
inline

◆ htobe() [5/8]

uint64_t htobe ( uint64_t  v)
inline

◆ htobe() [6/8]

int64_t htobe ( int64_t  v)
inline

◆ htobe() [7/8]

double htobe ( double  v)
inline

◆ htobe() [8/8]

float htobe ( float  v)
inline

◆ htole() [1/8]

uint16_t htole ( uint16_t  v)
inline

◆ htole() [2/8]

int16_t htole ( int16_t  v)
inline

◆ htole() [3/8]

uint32_t htole ( uint32_t  v)
inline

◆ htole() [4/8]

int32_t htole ( int32_t  v)
inline

◆ htole() [5/8]

uint64_t htole ( uint64_t  v)
inline

◆ htole() [6/8]

int64_t htole ( int64_t  v)
inline

◆ htole() [7/8]

double htole ( double  v)
inline

◆ htole() [8/8]

float htole ( float  v)
inline

◆ letoh() [1/8]

uint16_t letoh ( uint16_t  v)
inline

◆ letoh() [2/8]

int16_t letoh ( int16_t  v)
inline

◆ letoh() [3/8]

uint32_t letoh ( uint32_t  v)
inline

◆ letoh() [4/8]

int32_t letoh ( int32_t  v)
inline

◆ letoh() [5/8]

uint64_t letoh ( uint64_t  v)
inline

◆ letoh() [6/8]

int64_t letoh ( int64_t  v)
inline

◆ letoh() [7/8]

double letoh ( double  v)
inline

◆ letoh() [8/8]

float letoh ( float  v)
inline