Extract tar in memory and nonblocking

痞子三分冷 提交于 2019-12-12 02:05:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!