81void compressZlib(
const u8 *data,
size_t data_size, std::ostream &os,
int level = -1);
82inline void compressZlib(std::string_view data, std::ostream &os,
int level = -1)
84 compressZlib(
reinterpret_cast<const u8*
>(data.data()), data.size(), os, level);
86void decompressZlib(std::istream &is, std::ostream &os,
size_t limit = 0);
88void compressZstd(
const u8 *data,
size_t data_size, std::ostream &os,
int level = 0);
89inline void compressZstd(std::string_view data, std::ostream &os,
int level = 0)
91 compressZstd(
reinterpret_cast<const u8*
>(data.data()), data.size(), os, level);
96void compress(
const u8 *data, u32 size, std::ostream &os, u8 version,
int level = -1);
97inline void compress(std::string_view data, std::ostream &os, u8 version,
int level = -1)
99 compress(
reinterpret_cast<const u8*
>(data.data()), data.size(), os, version, level);
101void decompress(std::istream &is, std::ostream &os, u8 version);
void compress(const u8 *data, u32 size, std::ostream &os, u8 version, int level=-1)
Definition serialization.cpp:275
bool ser_ver_supported_read(s32 v)
Definition serialization.h:67
bool ser_ver_supported_write(s32 v)
Definition serialization.h:72
void decompressZlib(std::istream &is, std::ostream &os, size_t limit=0)
Definition serialization.cpp:95
constexpr u8 SER_FMT_VER_HIGHEST_WRITE
Definition serialization.h:59
void compressZlib(const u8 *data, size_t data_size, std::ostream &os, int level=-1)
Definition serialization.cpp:52
void compressZstd(const u8 *data, size_t data_size, std::ostream &os, int level=0)
Definition serialization.cpp:189
void decompressZstd(std::istream &is, std::ostream &os)
Definition serialization.cpp:230
constexpr u8 SER_FMT_VER_LOWEST_WRITE
Definition serialization.h:65
constexpr u8 SER_FMT_VER_INVALID
Definition serialization.h:55
constexpr u8 SER_FMT_VER_HIGHEST_READ
Definition serialization.h:57
void decompress(std::istream &is, std::ostream &os, u8 version)
Definition serialization.cpp:325
constexpr u8 SER_FMT_VER_LOWEST_READ
Definition serialization.h:61