1 #ifndef IOPool_Streamer_StreamSerializer_h 2 #define IOPool_Streamer_StreamSerializer_h 11 #include "TBufferFile.h" 24 class ModuleCallingContext;
25 class ThinnedAssociationsHelper;
85 uint32_t metaDataChecksum,
88 unsigned int reserveSize)
const;
96 unsigned int reserveSize)
const;
104 unsigned int inputSize,
105 std::vector<unsigned char> &outputBuffer,
107 unsigned int reserveSize);
110 unsigned int inputSize,
111 std::vector<unsigned char> &outputBuffer,
113 unsigned int reserveSize,
114 bool addHeader =
true);
117 unsigned int inputSize,
118 std::vector<unsigned char> &outputBuffer,
120 unsigned int reserveSize,
121 bool addHeader =
true);
128 unsigned int reserveSize)
const;
unsigned char *& bufferPointer()
std::vector< unsigned char > comp_buf_
std::vector< BranchIDList > BranchIDLists
int serializeEvent(SerializeDataBuffer &data_buffer, EventForOutput const &event, ParameterSetID const &selectorConfig, uint32_t metaDataChecksum, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const
StreamSerializer(SelectedProducts const *selections)
static unsigned int compressBufferZSTD(unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel, unsigned int reserveSize, bool addHeader=true)
edm::propagate_const< unsigned char * > ptr_
int serializeEventMetaData(SerializeDataBuffer &data_buffer, const BranchIDLists &branchIDLists, ThinnedAssociationsHelper const &thinnedAssociationsHelper, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const
data_buffer.adler32_chksum_ is the meta data checksum to pass to subsequent events ...
unsigned int currentEventSize() const
static constexpr int init_size
static constexpr unsigned int reserve_size
int serializeRegistry(SerializeDataBuffer &data_buffer) const
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
unsigned int curr_space_used_
uint32_t adler32_chksum() const
static unsigned int compressBuffer(unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel, unsigned int reserveSize)
static unsigned int compressBufferLZMA(unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel, unsigned int reserveSize, bool addHeader=true)
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
unsigned char const * bufferPointer() const
edm::propagate_const< TClass * > tc_
int serializeEventCommon(SerializeDataBuffer &data_buffer, edm::SendEvent const &iEvent, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const
SelectedProducts const * selections_
unsigned int currentSpaceUsed() const
std::vector< char > SBuffer
unsigned int curr_event_size_