`
zj5121
  • 浏览: 4198 次
  • 性别: Icon_minigender_1
  • 来自: 渥村
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
Following code implements the same function as "tar cf - workspace |gzip -9 -c >1.tar.gz" performance is also good. #include <boost/iostreams/device/file.hpp> #include <iostream> #include <string> #include <boost/iostreams/pipeline.hpp> #include <boost/io ...
#include <sys/stat.h> #include <fcntl.h> #include <sstream> #include <string> #include <list> #include <boost/iostreams/concepts.hpp> #include <boost/filesystem.hpp> #include <boost/iostreams/copy.hpp> #include <boost/filesystem/exception.hpp ...
FILE* pf = popen("/bin/tar xf - ", "w"); if (pf != NULL) { ifstream file(src_file, ios_base::in | ios_base::binary); io::filtering_streambuf<input> in; in.push(io::gzip_decompressor()); in.push(file); io::fil ...
Global site tag (gtag.js) - Google Analytics