48 fCompress(
ROOT::RCompressionSetting::EAlgorithm::kUseGlobal)
72 fCompress(
ROOT::RCompressionSetting::EAlgorithm::kUseGlobal)
248 newCompress = 100 * algorithm + level;
263 if (level < 0) level = 0;
264 if (level > 99) level = 99;
271 newCompress = 100 * algorithm + level;
306 if (compressionLevel <= 0) {
342 Int_t nbuffers = 1 + (messlen - 1) / kMAXZIPBUF;
344 Int_t buflen = std::max(512, chdrlen + messlen + 9*nbuffers);
346 char *messbuf =
Buffer() + hdrlen;
351 for (
Int_t i = 0; i < nbuffers; ++i) {
352 if (i == nbuffers - 1)
353 bufmax = messlen - nzip;
356 R__zipMultipleAlgorithm(compressionLevel, &bufmax, messbuf, &bufmax, bufcur, &nout,
358 if (nout == 0 || nout >= messlen) {
368 messbuf += kMAXZIPBUF;
401 Error(
"Uncompress",
"Inconsistency found in header (nin=%d, nbuf=%d)", nin, nbuf);
409 char *messbuf =
fBuffer + hdrlen;
416 R__unzip(&nin, bufcur, &nbuf, (
unsigned char*) messbuf, &nout);
419 if (noutot >= buflen - hdrlen)
break;
void frombuf(char *&buf, Bool_t *x)
void tobuf(char *&buf, Bool_t x)
void R__unzip(Int_t *nin, UChar_t *bufin, Int_t *lout, char *bufout, Int_t *nout)
int R__unzip_header(Int_t *nin, UChar_t *bufin, Int_t *lout)
void ResetAllBits(Bool_t value=kFALSE)
Reset all bits to 0 (false).
Bool_t TestBitNumber(UInt_t bitnumber) const
void SetBitNumber(UInt_t bitnumber, Bool_t value=kTRUE)
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
virtual TClass * ReadClass(const TClass *cl=0, UInt_t *objTag=0)
Read class definition from I/O buffer.
virtual void ResetMap()
Delete existing fMap and reset map counter.
virtual void InitMap()
Create the fMap container and initialize them with the null object.
Buffer base class used for serializing objects.
void SetWriteMode()
Set buffer in write mode.
@ kCannotHandleMemberWiseStreaming
void SetBufferOffset(Int_t offset=0)
virtual void Add(TObject *obj)
virtual void Clear(Option_t *option="")
Remove all objects from the list.
UShort_t WriteProcessID(TProcessID *pid)
Check if the ProcessID pid is already in the message.
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
void ForceWriteInfo(TVirtualStreamerInfo *info, Bool_t force)
Force writing the TStreamerInfo to the message.
void TagStreamerInfo(TVirtualStreamerInfo *info)
Remember that the StreamerInfo is being used in writing.
void Forward()
Change a buffer that was received into one that can be send, i.e.
void SetLength() const
Set the message length at the beginning of the message buffer.
void Reset()
Reset the message buffer so we can use (i.e. fill) it again.
Int_t GetCompressionAlgorithm() const
void SetCompressionSettings(Int_t settings=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose)
Int_t Compress()
Compress the message.
virtual ~TMessage()
Clean up compression buffer.
static Bool_t UsesSchemaEvolutionForAll()
Static function returning status of global schema evolution.
TMessage(const TMessage &)
void SetCompressionLevel(Int_t level=ROOT::RCompressionSetting::ELevel::kUseMin)
Int_t Uncompress()
Uncompress the message.
Int_t GetCompressionLevel() const
static Bool_t fgEvolution
void SetWhat(UInt_t what)
Using this method one can change the message type a-posteriory.
void SetCompressionAlgorithm(Int_t algorithm=ROOT::RCompressionSetting::EAlgorithm::kUseGlobal)
virtual UInt_t GetUniqueID() const
Return the unique object id.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
A TProcessID identifies a ROOT job in a unique way in time and space.
static TProcessID * GetPID()
static: returns pointer to current TProcessID
Abstract Interface class describing Streamer information for one class.
Namespace for new ROOT classes and functions.
EValues
Note: this is only temporarily a struct and will become a enum class hence the name.
@ kUndefined
Undefined compression algorithm (must be kept the last of the list in case a new algorithm is added).