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); }
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); }