예제 #1
0
파일: Main.cs 프로젝트: moto2002/unityLab
 private static void SerializeInnerText()
 {
     TbXmlSerializer convertor = new TbXmlSerializer();
     byte[] bytes = convertor.SerializeXmlString(File.ReadAllText("/Users/jimCheng/projects/XmlPerformanceTest/Assets/Resources/InnerText.xml"));
     File.WriteAllBytes("/Users/jimCheng/Desktop/BinaryXml.bytes", bytes);
 }
예제 #2
0
파일: Main.cs 프로젝트: xxyzfd/unityLab
		private static void SerializeBuff()
		{
			TbXmlSerializer convertor = new TbXmlSerializer();
			byte[] bytes = convertor.SerializeXmlString(File.ReadAllText("/Users/jimCheng/projects/XmlPerformanceTest/Assets/Resources/Buff.xml"));
			File.WriteAllBytes("/Users/jimCheng/Desktop/BinaryXml.bytes", bytes);
		}