Esempio n. 1
1
        public static void TestMemoryStream()
        {
            TagCompound root = MakeRootTag();

            byte[] data = NbtIO.WriteToBytes(root);

            Console.WriteLine(root.ToTreeString());

            Console.WriteLine("\nSerialized to:");
            Console.WriteLine(ToHex(data));
            Console.WriteLine();

            TagCompound parsed = NbtIO.ParseBytes(data);

            Console.WriteLine(parsed.ToTreeString());
        }