Module minetest_protocol::wire::util
source · Expand description
The crazy exotic serialization methods Minetest uses
Functions
- This method must detect the end of the stream. ‘uncompressed’ may have more data past the end of the zlib stream Returns (bytes_consumed, uncompressed_data)
- Returns the next word (non-whitespace chunk) in u8 slice, and the remainder (which may still have whitespace)
- serializeJsonStringIfNeeded
- This is needed to handle the crazy inventory parsing.
- Parse byte slice into an integer. The opposite of itos. On error (such as Utf8Error or ParseIntError) this does
return Err()
implicitly. - Streaming Zstd compress
- Streaming Zstd decompress