public Deserializer(MSG_File _msgFile, string location) { saveLocation = location; msg_File = _msgFile; UnicodeCheck(); WriteData(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
public Deserializer(string location) { saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location)); YAXSerializer serializer = new YAXSerializer(typeof(MSG_File), YAXSerializationOptions.DontSerializeNullObjects); msg_File = (MSG_File)serializer.DeserializeFromFile(location); UnicodeCheck(); WriteData(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
public Parser(byte[] _bytes) { rawBytes = _bytes; bytes = rawBytes.ToList(); if (bytes != null) { UnicodeCheck(); Parse(); } else { msg_File = null; } }
public Deserializer(MSG_File _msgFile) { msg_File = _msgFile; UnicodeCheck(); WriteData(); }