Hall-D Software
alpha
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | swap64(x) |
#define | swap32(x) |
#define | swap16(x) |
Functions | |
uint32_t | swap_bank (uint32_t *outbuff, uint32_t *inbuff, uint32_t len) |
uint32_t | swap_tagsegment (uint32_t *outbuff, uint32_t *inbuff, uint32_t len) |
uint32_t | swap_segment (uint32_t *outbuff, uint32_t *inbuff, uint32_t len) |
void | swap_block (uint16_t *inbuff, uint16_t len, uint16_t *outbuff) |
void | swap_block (uint32_t *inbuff, uint32_t len, uint32_t *outbuff) |
void | swap_block (uint64_t *inbuff, uint64_t len, uint64_t *outbuff) |
#define swap16 | ( | x | ) |
Definition at line 32 of file swap_bank.h.
Referenced by swap_block().
#define swap32 | ( | x | ) |
Definition at line 27 of file swap_bank.h.
Referenced by swap_block().
#define swap64 | ( | x | ) |
Definition at line 18 of file swap_bank.h.
Referenced by swap_block().
uint32_t swap_bank | ( | uint32_t * | outbuff, |
uint32_t * | inbuff, | ||
uint32_t | len | ||
) |
Swap an EVIO bank. If the bank contains data, it is automatically swapped according to it's type. If the bank is a container of other containers, then this repeatedly calls the swapper methods for the appropriate container type (bank, tagsegment, segment). This means that this method will be recursive in the cases where it is a bank of banks.
Definition at line 15 of file swap_bank.cc.
References swap_bank(), swap_block(), swap_segment(), and swap_tagsegment().
Referenced by HDET::read(), DEVIOWorkerThread::Run(), and swap_bank().
|
inline |
Definition at line 45 of file swap_bank.h.
References swap16.
Referenced by swap_bank(), swap_segment(), and swap_tagsegment().
|
inline |
Definition at line 55 of file swap_bank.h.
References swap32.
|
inline |
Definition at line 65 of file swap_bank.h.
References swap64.
uint32_t swap_segment | ( | uint32_t * | outbuff, |
uint32_t * | inbuff, | ||
uint32_t | len | ||
) |
Swap an EVIO segment.
Definition at line 152 of file swap_bank.cc.
References swap_block().
Referenced by swap_bank().
uint32_t swap_tagsegment | ( | uint32_t * | outbuff, |
uint32_t * | inbuff, | ||
uint32_t | len | ||
) |
Swap an EVIO tagsegment.
Definition at line 102 of file swap_bank.cc.
References swap_block().
Referenced by swap_bank().