Expand description
The crazy exotic serialization methods Minetest uses
Functions§
- compress_
zlib - decompress_
zlib - 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)
- deserialize_
json_ string - deserialize_
json_ string_ if_ needed - from_
hex - next_
word - Returns the next word (non-whitespace chunk) in u8 slice, and the remainder (which may still have whitespace)
- serialize_
json_ string - serialize_
json_ string_ if_ needed - serializeJsonStringIfNeeded
- skip_
whitespace - split_
by_ whitespace - This is needed to handle the crazy inventory parsing.
- stoi
- Parse byte slice into an integer. The opposite of itos.
On error (such as Utf8Error or ParseIntError) this does
return Err()
implicitly. - to_hex
- zstd_
compress - Streaming Zstd compress
- zstd_
decompress - Streaming Zstd decompress