Esempio n. 1
0
 private bool ReadSio(Stream s)
 {
     Sio.SDataBuff d = new Sio.SDataBuff();
     if (d.UnSerializ(s))
     {
         Sio.SListReader lr = d.listReader;
         if (lr != null)
         {
             Sio.SDataBuff b = new Sio.SDataBuff();
             while (lr.Next(b))
             {
                 Sio.SMapReader mr = b.mapReader;
                 if (mr != null)
                 {
                     NModule tm = new NModule();
                     if (tm.Unserial(mr))
                     {
                         Add(tm);
                     }
                 }
             }
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
 private bool ReadBinary(Stream s)
 {
     if (s != null)
     {
         uint size = Core.Unity.Convert.ReadUint(s);
         for (uint index = 0; index < size; ++index)
         {
             NModule m = new NModule();
             if (m.Unserial(s))
             {
                 Add(m);
             }
         }
         return(true);
     }
     return(false);
 }