Collision detection tweak #2 (#9365)
[oweals/minetest.git] / src / serialization.h
index 7f8b833825f86da4dfc0beebfc18724df3bd4457..f399983c49a09cb5b901ac439040453d9deca99f 100644 (file)
@@ -87,7 +87,7 @@ inline 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);
+void decompressZlib(std::istream &is, std::ostream &os, size_t limit = 0);
 
 // These choose between zlib and a self-made one according to version
 void compress(const SharedBuffer<u8> &data, std::ostream &os, u8 version);