[][src]Crate nobility

Nobility is a crate for decoding and encoding NBT (Named Binary Tags), the format used by Minecraft for storing data.

The decoder is meant to perform minimal allocations - most of its types are views into the original data that was passed in.

The encoder is builder-based and does not take in any kind of document structure.

Modules

bin_decode

Contains the implementation of the binary format decoder. Decoder for the NBT binary format. This module is based around the idea that you won't store the objects, instead they will be walked through to build up some other data structure.

bin_encode

Contains the implementation of the binary format encoder. Encoder for the NBT binary format. This is based on builder objects rather than taking a document structure, so very few allocations are required other than the actual data buffer being written into.

Enums

TagType

NBT tags are a 1-byte value used to specify which type is going to follow. The integer values of each enum corresponds to the actual ones used, and tag as u8 can be used to cast these to their binary representation.