Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tim Sylvester <tim@wetdogweather.com>
22 lines
445 B
C++
22 lines
445 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace mbgl {
|
|
namespace util {
|
|
|
|
enum CompressionFormat {
|
|
ZLIB = 15,
|
|
GZIP = 15 + 16,
|
|
DEFLATE = -15,
|
|
DETECT = 15 + 32
|
|
};
|
|
|
|
std::string compress(const std::string& raw, int windowBits = CompressionFormat::ZLIB);
|
|
std::string decompress(const std::string& raw, int windowBits = CompressionFormat::DETECT);
|
|
|
|
std::uint32_t crc32(const void* raw, size_t size);
|
|
|
|
} // namespace util
|
|
} // namespace mbgl
|