owengage / fastnbt

Fast serde serializer and deserializer for Minecraft's NBT and Anvil formats
MIT License
185 stars 35 forks source link

Add tests for network NBT. #110

Closed occanowey closed 4 months ago

occanowey commented 4 months ago

Some tests for networked NBT as discussed in #109.

I decided not to add a test for deserializing a named root tag with a network deserializer because it's kinda always going to do some funny behavior. e.g. if the name length is less than 255 it will just read it as an empty compound or if the name is greater than 255 it'll try read the first byte as a type and go down hill from there.

owengage commented 4 months ago

Brilliant, thanks. 😊