2019-02-20 02:10:06 -05:00
|
|
|
#pragma once
|
|
|
|
|
2020-03-09 01:50:30 -07:00
|
|
|
#include <stream.hpp>
|
2019-02-20 02:10:06 -05:00
|
|
|
|
2020-03-09 01:50:30 -07:00
|
|
|
#include "format.hpp"
|
2019-02-20 02:10:06 -05:00
|
|
|
|
2023-05-19 04:19:43 -07:00
|
|
|
filter_strm_ptr get_encoder(format_t type, out_strm_ptr &&base);
|
2019-11-23 04:57:52 -05:00
|
|
|
|
2023-05-19 04:19:43 -07:00
|
|
|
filter_strm_ptr get_decoder(format_t type, out_strm_ptr &&base);
|
2019-11-23 04:57:52 -05:00
|
|
|
|
2019-02-20 20:49:26 -05:00
|
|
|
void compress(const char *method, const char *infile, const char *outfile);
|
2019-11-23 04:57:52 -05:00
|
|
|
|
2019-02-20 20:49:26 -05:00
|
|
|
void decompress(char *infile, const char *outfile);
|
2022-12-13 11:33:16 +08:00
|
|
|
|
|
|
|
namespace rust {
|
|
|
|
bool decompress(const unsigned char *in, uint64_t in_size, int fd);
|
|
|
|
}
|