#include "services/data_decoder/gzipper.h"
#include "base/containers/span.h"
#include "mojo/public/cpp/base/big_buffer.h"
#include "third_party/zlib/google/compression_utils.h"
#include "third_party/zlib/google/compression_utils_portable.h"
namespace data_decoder {
namespace {
mojo_base::BigBuffer StringToBuffer(const std::string& string) { … }
}
Gzipper::Gzipper() = default;
Gzipper::~Gzipper() = default;
void Gzipper::Deflate(mojo_base::BigBuffer data, DeflateCallback callback) { … }
void Gzipper::Inflate(mojo_base::BigBuffer data,
uint64_t max_uncompressed_size,
InflateCallback callback) { … }
void Gzipper::Compress(mojo_base::BigBuffer data, CompressCallback callback) { … }
void Gzipper::Uncompress(mojo_base::BigBuffer compressed_data,
UncompressCallback callback) { … }
}