CAFE_BSHELPER Namespace Reference

Classes

class  DataBitset
 DataBitset Template
CTYPE is the integer type the data type is to be rendered to the client
method unfold() will receive data and then convert to CTYPE. More...
class  IntegerBitsetV
 IntegerBitset Template
CTYPE is the integer type the data type is to be rendered to the client
method unfold() will receive data and then convert to vector<CTYPE>. More...
class  IntegerBitset
 IntegerBitset Template
CTYPE is the integer type the data type is to be rendered to the client
method unfold() will receive data and then convert to CTYPE *. More...
class  FloatBitset
 FloatBitset Template
CTYPE is the float type of the data type to be rendered to the client
method unfold() will receive data and then convert to CTYPE. More...
class  FloatBitsetV
 FloatBitsetV Template
CTYPE is the float type of the data type to be rendered to the client
method unfold() will receive data and then convert to vector<CTYPE>. More...

Enumerations

enum  bsdtIndex {
  BS_INT8 = 0, BS_UINT8, BS_INT16, BS_UINT16,
  BS_INT32, BS_UINT32, BS_INT64, BS_UINT64,
  BS_FLOAT32, BS_FLOAT64, BS_BOOL, BS_STRING,
  BS_CHAR = BS_STRING
}

Functions

void bsdtInsert ()
int getByteSize (unsigned int dt)
int getByteSize (std::string dt)
void printBits (int const size, void const *const ptr)
 Generic function to display bits of a number used for testing in zmq stream.
int unfoldPreBlob (const char *data, long &uncompressedSize, int &blockSize)
 Unfolds the two bytes that precede the blob See: https://git.psi.ch/sf_daq/ch.psi.daq.dispatcherrest and: https://git.psi.ch/sf_daq/bsread_specification.
int bitshuffleDecompress (const char *data, char *&regen_buffer, int sizeData, int dtByteSize)
 Routine that decompresses the compressed WFs and other data.

Variables

bsreadContainer_set bsdt
std::vector< BSChannel > bsrdV

Enumeration Type Documentation

Enumerator:
BS_INT8 
BS_UINT8 
BS_INT16 
BS_UINT16 
BS_INT32 
BS_UINT32 
BS_INT64 
BS_UINT64 
BS_FLOAT32 
BS_FLOAT64 
BS_BOOL 
BS_STRING 
BS_CHAR 

Function Documentation

int CAFE_BSHELPER::bitshuffleDecompress ( const char *  data,
char *&  regen_buffer,
int  sizeData,
int  dtByteSize 
)

Routine that decompresses the compressed WFs and other data.

References __METHOD__, bshuf_decompress_lz4(), BSREAD_PREBLOB_BYTES, ECAFE_BITSHUFF_ALLOCMEM, ECAFE_BITSHUFF_BADCOUNT, ECAFE_BITSHUFF_DECOMPRESS, ICAFE_NORMAL, and unfoldPreBlob().

Referenced by z_bsread().

void CAFE_BSHELPER::bsdtInsert (  ) 
int CAFE_BSHELPER::getByteSize ( std::string  dt  ) 

References __METHOD__, bsdt, and getByteSize().

int CAFE_BSHELPER::getByteSize ( unsigned int  dt  ) 
void CAFE_BSHELPER::printBits ( int const   size,
void const *const   ptr 
)

Generic function to display bits of a number used for testing in zmq stream.

int CAFE_BSHELPER::unfoldPreBlob ( const char *  data,
long uncompressedSize,
int blockSize 
)

Variable Documentation

Referenced by bsdtInsert(), getByteSize(), and z_bsread().

std::vector<BSChannel> CAFE_BSHELPER::bsrdV

Referenced by z_bsread().


Generated on 28 May 2018 for CAFE by  doxygen 1.6.1