我这样使用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
会写什么?