#include "irrlichttypes.h"
#include "exceptions.h"
#include <iostream>
#include "util/pointer.h"
Go to the source code of this file.
|
bool | ser_ver_supported (s32 v) |
|
void | compressZlib (const u8 *data, size_t data_size, std::ostream &os, int level=-1) |
|
void | compressZlib (const std::string &data, std::ostream &os, int level=-1) |
|
void | decompressZlib (std::istream &is, std::ostream &os, size_t limit=0) |
|
void | compress (const SharedBuffer< u8 > &data, std::ostream &os, u8 version) |
|
void | decompress (std::istream &is, std::ostream &os, u8 version) |
|
◆ SER_FMT_VER_HIGHEST_READ
#define SER_FMT_VER_HIGHEST_READ 28 |
◆ SER_FMT_VER_HIGHEST_WRITE
#define SER_FMT_VER_HIGHEST_WRITE 28 |
◆ SER_FMT_VER_INVALID
#define SER_FMT_VER_INVALID 255 |
◆ SER_FMT_VER_LOWEST_READ
#define SER_FMT_VER_LOWEST_READ 0 |
◆ SER_FMT_VER_LOWEST_WRITE
#define SER_FMT_VER_LOWEST_WRITE 24 |
◆ compress()
void compress |
( |
const SharedBuffer< u8 > & |
data, |
|
|
std::ostream & |
os, |
|
|
u8 |
version |
|
) |
| |
◆ compressZlib() [1/2]
void compressZlib |
( |
const std::string & |
data, |
|
|
std::ostream & |
os, |
|
|
int |
level = -1 |
|
) |
| |
◆ compressZlib() [2/2]
void compressZlib |
( |
const u8 * |
data, |
|
|
size_t |
data_size, |
|
|
std::ostream & |
os, |
|
|
int |
level = -1 |
|
) |
| |
◆ decompress()
void decompress |
( |
std::istream & |
is, |
|
|
std::ostream & |
os, |
|
|
u8 |
version |
|
) |
| |
◆ decompressZlib()
void decompressZlib |
( |
std::istream & |
is, |
|
|
std::ostream & |
os, |
|
|
size_t |
limit = 0 |
|
) |
| |
References dstream, and zerr().
Referenced by TestCompression::_testZlibLimit(), decompress(), MapBlock::deSerialize(), MapBlock::deSerialize_pre22(), MapNode::deSerializeBulk(), Client::handleCommand_ItemDef(), Client::handleCommand_NodeDef(), Client::handleCommand_NodemetaChanged(), ModApiUtil::l_decompress(), and TestCompression::testZlibLargeData().
◆ ser_ver_supported()
bool ser_ver_supported |
( |
s32 |
v | ) |
|
|
inline |