pub fn to_writer<'a, E: Endianness, W: Write, S: Serialize + ?Sized>(
writer: W,
value: &S,
root_name: Option<&'a str>,
) -> Result<()>
Available on crate feature
nbt
only.Expand description
Takes in a Write
implementation W
and a serde::Serialize
implementation S
and writes it as binary in
endianness E
.