2019-02-20 07:10:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-05-26 06:45:38 +00:00
|
|
|
#include <cxx.h>
|
2020-03-09 08:50:30 +00:00
|
|
|
#include <stream.hpp>
|
2019-02-20 07:10:06 +00:00
|
|
|
|
2020-03-09 08:50:30 +00:00
|
|
|
#include "format.hpp"
|
2019-02-20 07:10:06 +00:00
|
|
|
|
2023-05-20 08:28:10 +00:00
|
|
|
out_strm_ptr get_encoder(format_t type, out_strm_ptr &&base);
|
|
|
|
out_strm_ptr get_decoder(format_t type, out_strm_ptr &&base);
|
2019-02-21 01:49:26 +00:00
|
|
|
void compress(const char *method, const char *infile, const char *outfile);
|
|
|
|
void decompress(char *infile, const char *outfile);
|
2023-05-26 06:45:38 +00:00
|
|
|
bool decompress(rust::Slice<const uint8_t> buf, int fd);
|
2023-12-08 15:30:55 +00:00
|
|
|
bool xz(rust::Slice<const uint8_t> buf, rust::Vec<uint8_t> &out);
|
|
|
|
bool unxz(rust::Slice<const uint8_t> buf, rust::Vec<uint8_t> &out);
|