2013-08-13 21:13:25 +00:00
|
|
|
#pragma once
|
2014-07-03 02:36:10 +00:00
|
|
|
|
|
|
|
|
#include <fc/filesystem.hpp>
|
2013-08-13 21:13:25 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace fc {
|
|
|
|
|
|
2014-07-03 02:36:10 +00:00
|
|
|
std::vector<char> lzma_compress( const std::vector<char>& in );
|
|
|
|
|
std::vector<char> lzma_decompress( const std::vector<char>& compressed );
|
|
|
|
|
|
2014-07-03 03:28:08 +00:00
|
|
|
void lzma_compress_file( const path& src_path,
|
|
|
|
|
const path& dst_path,
|
2014-07-03 02:36:10 +00:00
|
|
|
unsigned char level = 5,
|
|
|
|
|
unsigned int dict_size = (1 << 20) );
|
2013-08-13 21:13:25 +00:00
|
|
|
|
2014-07-03 03:28:08 +00:00
|
|
|
void lzma_decompress_file( const path& src_path,
|
|
|
|
|
const path& dst_path );
|
|
|
|
|
|
2013-08-13 21:13:25 +00:00
|
|
|
} // namespace fc
|