예제 #1
0
 public Deserializer(MSG_File _msgFile, string location)
 {
     saveLocation = location;
     msg_File     = _msgFile;
     UnicodeCheck();
     WriteData();
     File.WriteAllBytes(saveLocation, bytes.ToArray());
 }
예제 #2
0
        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());
        }
예제 #3
0
 public Parser(byte[] _bytes)
 {
     rawBytes = _bytes;
     bytes    = rawBytes.ToList();
     if (bytes != null)
     {
         UnicodeCheck();
         Parse();
     }
     else
     {
         msg_File = null;
     }
 }
예제 #4
0
 public Deserializer(MSG_File _msgFile)
 {
     msg_File = _msgFile;
     UnicodeCheck();
     WriteData();
 }