#include "puffin/src/include/puffin/brotli_util.h"
#include "brotli/decode.h"
#include "brotli/encode.h"
#include "puffin/memory_stream.h"
#include "puffin/src/logging.h"
namespace puffin {
namespace {
constexpr auto kBufferSize = …;
constexpr auto kDefaultParamQuality = …;
constexpr auto kDefaultParamLgwin = …;
}
bool BrotliEncode(const uint8_t* input,
size_t input_size,
UniqueStreamPtr output_stream,
int quality) { … }
bool BrotliEncode(const uint8_t* input,
size_t input_size,
UniqueStreamPtr output_stream) { … }
bool BrotliEncode(const uint8_t* input,
size_t input_size,
std::vector<uint8_t>* output) { … }
bool BrotliDecode(const uint8_t* input,
size_t input_size,
UniqueStreamPtr output_stream) { … }
bool BrotliDecode(const uint8_t* input,
size_t input_size,
std::vector<uint8_t>* output) { … }
}