evio
5.2
|
These routines handle swapping the endianness (little <-> big) of evio data. More...
Macros | |
#define | EVIO_SWAP64(x) |
#define | EVIO_SWAP32(x) |
#define | EVIO_SWAP16(x) |
Functions | |
void | evioswap (uint32_t *buf, int tolocal, uint32_t *dest) |
Routine to swap the endianness of an evio event (bank). More... | |
uint32_t * | swap_int32_t (uint32_t *data, unsigned int length, uint32_t *dest) |
This routine swaps a buffer of 32 bit integers. More... | |
uint64_t * | swap_int64_t (uint64_t *data, unsigned int length, uint64_t *dest) |
This routine swaps a buffer of 64 bit integers. More... | |
uint16_t * | swap_int16_t (uint16_t *data, unsigned int length, uint16_t *dest) |
This routine swaps a buffer of 16 bit integers. More... | |
These routines handle swapping the endianness (little <-> big) of evio data.
#define EVIO_SWAP16 | ( | x | ) |
Referenced by swap_int16_t().
#define EVIO_SWAP32 | ( | x | ) |
Referenced by evCreateFirstEventBlock(), evPrintBuffer(), evRead(), evReadNoCopy(), evReadRandom(), and swap_int32_t().
#define EVIO_SWAP64 | ( | x | ) |
Referenced by swap_int64_t().
Routine to swap the endianness of an evio event (bank).
buf | buffer of evio event data to be swapped |
tolocal | if 0 buf contains data of same endian as local host, else buf has data of opposite endian |
dest | buffer to place swapped data into. If this is NULL, then dest = buf. |
Referenced by evRead(), evReadNoCopy(), and evReadRandom().
This routine swaps a buffer of 16 bit integers.
data | pointer to data to be swapped |
length | number of 16 bit ints to be swapped |
dest | pointer to where swapped data is to be copied to. If NULL, the data is swapped in place. |
References EVIO_SWAP16.
This routine swaps a buffer of 32 bit integers.
data | pointer to data to be swapped |
length | number of 32 bit ints to be swapped |
dest | pointer to where swapped data is to be copied to. If NULL, the data is swapped in place. |
References EVIO_SWAP32.
This routine swaps a buffer of 64 bit integers.
data | pointer to data to be swapped |
length | number of 64 bit ints to be swapped |
dest | pointer to where swapped data is to be copied to. If NULL, the data is swapped in place. |
References EVIO_SWAP64.