Function valence_nbt::binary::from_binary

source ·
pub fn from_binary<'de, S>(slice: &mut &'de [u8]) -> Result<(Compound<S>, S)>
where S: FromModifiedUtf8<'de> + Hash + Ord,
Expand description

Decodes uncompressed NBT binary data from the provided slice.

The string returned in the tuple is the name of the root compound (typically the empty string).