mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Clean up and compress some pre-join packets (#15881)
This commit is contained in:
parent
287880aa27
commit
afb15978d9
12 changed files with 260 additions and 102 deletions
|
@ -469,3 +469,10 @@ std::string serializeJsonStringIfNeeded(std::string_view s);
|
|||
|
||||
// Parses a string serialized by serializeJsonStringIfNeeded.
|
||||
std::string deSerializeJsonStringIfNeeded(std::istream &is);
|
||||
|
||||
// Serializes an array of strings (max 2^16 chars each)
|
||||
// Output is well suited for compression :)
|
||||
std::string serializeString16Array(const std::vector<std::string> &array);
|
||||
|
||||
// Deserializes a string array
|
||||
std::vector<std::string> deserializeString16Array(std::istream &is);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue