boost :: iostreams :: lzma_compressor输出格式

时间:2018-08-28 20:04:20

标签: c++ boost lzma xz

我这样使用boost::iostreams::lzma_compressor

std::ofstream file(ofname);
namespace bio = boost::iostreams;
bio::filtering_streambuf<bio::output> buf;
buf.push(bio::lzma_compressor(bio::lzma::best_compression));
buf.push(file);
std::ostream(&buf) << out;

,它以与xz file相同的格式写入输出。如何将输出写为原始LZMA流,例如lzma file会写什么?

0 个答案:

没有答案