Crate simdnbt

source ·
Expand description

an unnecessarily fast nbt decoder.

afaik, this is currently the fastest nbt decoder in existence.

use simdnbt::Nbt;
use std::io::Cursor;

let nbt = Nbt::new(&mut Cursor::new(include_bytes!("../tests/hello_world.nbt"))).unwrap().unwrap();
assert_eq!(nbt.name().to_str(), "hello world");
assert_eq!(nbt.string("name").unwrap().to_str(), "Bananrama");

Structs

  • A list of named tags. The order of the tags is preserved.
  • A M-UTF8 string slice. This is how strings are represented internally in NBT.
  • A complete NBT container. This contains a name and a compound tag.

Enums