I need to extract a large gzip data stream in C++ (on Linux) into memory. I intended to use libarchive
, but I have the limit that I cannot block or use any kind of synchronization.
AFAIR in order to use libarchive
's custom reader it has to block, till data is available.
So I would like it to have the other way around. A library, which has callbacks for entries/progress and the ability to put data in manually.
Is there any library out there that does this or is it faster to modify libarchive
to work the other way around?