pub fn to_bytes(root_tag: NamedTag) -> Result<Vec<u8>, Error>
Converts an entire NBT compound into an array of bytes. This must be a full NBT compound.