Exemplo n.º 1
0
        public static byte[] WriteToBytes(INamedBinaryTag nbt)
        {
            byte[] result = new byte[0];
            using (MemoryStream stream = new MemoryStream())
            {
                TagParserBase.WriteTag(stream, nbt);
                result = stream.ToArray();
            }

            return(result);
        }
Exemplo n.º 2
0
 public static void WriteToStream(Stream stream, INamedBinaryTag nbt)
 {
     TagParserBase.WriteTag(stream, nbt);
 }