mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
157ac22461
thanks cargo-udeps |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |
Azalea NBT
A fast NBT serializer and deserializer.
Examples
use ahash::AHashMap;
use azalea_nbt::Tag;
use std::io::Cursor;
let buf = include_bytes!("../tests/hello_world.nbt");
let tag = Tag::read(&mut Cursor::new(&buf[..])).unwrap();
assert_eq!(
tag,
Tag::Compound(AHashMap::from_iter(vec![(
"hello world".to_string(),
Tag::Compound(AHashMap::from_iter(vec![(
"name".to_string(),
Tag::String("Bananrama".to_string()),
)]))
)]))
);