[−][src]Crate fastnbt
Aims to allow fast parsing of NBT and Anvil data from Minecraft: Java Edition.
A serde
compatible deserializer can be found in the nbt
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 nbt::de
module for more information.
If you require accessing large amount of NBT data that you do not want to keep in memory, you can use
the nbt::stream
module. This does not allow you to deserialize into Rust struct
s, but does allow
low memory footprint processing on NBT data.
nbt::stream
is also useful when you do not know the structure ahead of time.
Both this crate and the tools crate are under one fastnbt Github repository
Modules
anvil | For handling Minecraft's region format, Anvil. |
de | A conventional |
error | |
stream | Allows streaming of NBT data without prior knowledge of the structure. |