54#define SER_FMT_VER_INVALID 255
56#define SER_FMT_VER_HIGHEST_READ 29
58#define SER_FMT_VER_HIGHEST_WRITE 29
60#define SER_FMT_VER_LOWEST_READ 0
64#define SER_FMT_VER_LOWEST_WRITE 24
74void compressZlib(
const u8 *data,
size_t data_size, std::ostream &os,
int level = -1);
75inline void compressZlib(std::string_view data, std::ostream &os,
int level = -1)
77 compressZlib(
reinterpret_cast<const u8*
>(data.data()), data.size(), os, level);
79void decompressZlib(std::istream &is, std::ostream &os,
size_t limit = 0);
81void compressZstd(
const u8 *data,
size_t data_size, std::ostream &os,
int level = 0);
82inline void compressZstd(std::string_view data, std::ostream &os,
int level = 0)
84 compressZstd(
reinterpret_cast<const u8*
>(data.data()), data.size(), os, level);
89void compress(
const u8 *data, u32 size, std::ostream &os, u8 version,
int level = -1);
90inline void compress(std::string_view data, std::ostream &os, u8 version,
int level = -1)
92 compress(
reinterpret_cast<const u8*
>(data.data()), data.size(), os, version, level);
94void 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
void decompressZlib(std::istream &is, std::ostream &os, size_t limit=0)
Definition serialization.cpp:95
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
bool ser_ver_supported(s32 v)
Definition serialization.h:66
void decompressZstd(std::istream &is, std::ostream &os)
Definition serialization.cpp:230
#define SER_FMT_VER_HIGHEST_READ
Definition serialization.h:56
void decompress(std::istream &is, std::ostream &os, u8 version)
Definition serialization.cpp:325
#define SER_FMT_VER_LOWEST_READ
Definition serialization.h:60