aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.h
diff options
context:
space:
mode:
authorlhofhansl <larsh@apache.org>2021-08-31 17:32:31 -0700
committerGitHub <noreply@github.com>2021-08-31 17:32:31 -0700
commitd1624a552151bcb152b7abf63df6501b63458d78 (patch)
treee73a7b216f23962c06e591c4d0d1e5333d949b08 /src/mapblock.h
parentbeac4a2c984706b636e7b1e03406e05c87435903 (diff)
downloadminetest-d1624a552151bcb152b7abf63df6501b63458d78.tar.xz
Switch MapBlock compression to zstd (#10788)
* Add zstd support. * Rearrange serialization order * Compress entire mapblock Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/mapblock.h')
-rw-r--r--src/mapblock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapblock.h b/src/mapblock.h
index 2e3eb0d76..8de631a29 100644
--- a/src/mapblock.h
+++ b/src/mapblock.h
@@ -473,7 +473,7 @@ public:
// These don't write or read version by itself
// Set disk to true for on-disk format, false for over-the-network format
// Precondition: version >= SER_FMT_VER_LOWEST_WRITE
- void serialize(std::ostream &os, u8 version, bool disk, int compression_level);
+ void serialize(std::ostream &result, u8 version, bool disk, int compression_level);
// If disk == true: In addition to doing other things, will add
// unknown blocks from id-name mapping to wndef
void deSerialize(std::istream &is, u8 version, bool disk);