Function simdnbt::owned::read

source ยท
pub fn read(data: &mut Cursor<&[u8]>) -> Result<Nbt, Error>
Expand description

Read a normal root NBT compound. This is either empty or has a name and compound tag.

Returns Ok(Nbt::None) if there is no data.