[][src]Crate fastnbt

fastnbt aims for fast parsing of NBT data from Minecraft: Java Edition. This format is used to store many things in Minecraft.

A serde compatible deserializer can be found in the de module. This deserialiser works on an in-memory &[u8], meaning you need all of the NBT data in memory. This has the advantage of allowing you to avoid memory allocations in some cases. See the de module for more information.

If you require processing a large amount of NBT data that you do not want to keep in memory, or NBT data that you do not know the structure of, you can use the Parser. This does not allow you to deserialize into Rust structs, but does allow low memory footprint processing on NBT data.

Both this and related crates are under one fastnbt Github repository

Modules

de
error
stream

Allows streaming of NBT data without prior knowledge of the structure.

Enums

Tag

An NBT tag. This does not carry the value or the name.

Value

Value is a complete NBT value. It owns it's data. The Byte, Short, Int and Long NBT types are all deserialized into i64. Compounds and Lists are resursively deserialised.