问题
I need to extract a tar.gz
datastream in memory. An additional limit is that I cannot block.
Deflating in memory works great via zlib
.
Now I need the untar part. Sadly all libraries I found either block or just work with tar files. Is there any library that works similarly to zlib
?
回答1:
You can try libtar. And here is an extraneous sentence to meet the required length of an SO answer.
回答2:
Ok, there was no suitable library before. But now there will be, soon. Check it out here but be aware, that it is not yet working.
来源:https://stackoverflow.com/questions/14622669/extract-tar-in-memory-and-nonblocking