I have to read some text files using zlib decompression. I have noticed that ROOT is implementing a Compression class. It seems to be very related to ROOT files decompression.
Is there a way to take advantage of this already existing dependencies in root ?
Thank you ! Yes I have implemented it, but I wanted to be sure this was not already done in ROOT directly without handling additional deps in my C++ compilation
ROOT internally uses several compression algorithms.
But there is no documentation or tutorials for that.
There are only low-level functions which can be in RZip.h include file:
One usually compress data using R__zipMultipleAlgorithm function and decompress with R__unzip.
You could try to find examples in ROOT source code. Like in TMessage class:
Be aware of kMAXZIPBUF constant which defines maximal buffer size for compression.