mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add compression API
This commit is contained in:
parent
d6e28c19b5
commit
406ed5efac
5 changed files with 65 additions and 7 deletions
|
@ -78,8 +78,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
Misc. serialization functions
|
||||
*/
|
||||
|
||||
void compressZlib(SharedBuffer<u8> data, std::ostream &os);
|
||||
void compressZlib(const std::string &data, std::ostream &os);
|
||||
void compressZlib(SharedBuffer<u8> data, 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);
|
||||
|
||||
// These choose between zlib and a self-made one according to version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue