General utilities. More...
#include <evioUtil.hxx>
Static Public Member Functions | |
static uint32_t * | appendToBuffer (const uint32_t *buffer, ContainerType bufferType, const uint32_t *structure, ContainerType structureType) throw (evioException) |
Appends structure to buffer in newly allocated memory. |
General utilities.
uint32_t * evioUtilities::appendToBuffer | ( | const uint32_t * | buffer, | |
ContainerType | bufferType, | |||
const uint32_t * | structure, | |||
ContainerType | structureType | |||
) | throw (evioException) [static] |
Appends structure to buffer in newly allocated memory.
Throws exception if buffer content type and structure container type don't match. I.e. cannot add a segment structure to a bank of banks.
buffer | Buffer | |
bufferType | Container type of buffer (BANK, SEGMENT or TAGSEGMENT) | |
structure | Structure to append to buffer | |
structureType | Container type of structure |
References evio::BANK, and evio::SEGMENT.