Beispiel #1
0
 public void Read(Stream input)
 {
     parent = new RiteIREPRecord();
     parent.Read(input);
     children = new RiteIREPRecords[parent.numOfChildren];
     for (UInt32 i = 0; i < parent.numOfChildren; ++i)
     {
         children[i] = new RiteIREPRecords();
         children[i].Read(input);
     }
 }
Beispiel #2
0
 public void Read(Stream input)
 {
     magic = input.ReadBytes(4);
     size  = input.ReadValueS32(Endian.Big);
     if (!MainClass.CheckMagic(magic, Magics.IREP))
     {
         raw    = input.ReadBytes(size - 8);
         isIREP = false;
     }
     else
     {
         irepVersion = input.ReadBytes(4);
         if (!MainClass.CheckMagic(irepVersion, Magics.ZERO))
         {
             Console.WriteLine("Unexpected IREP version!");
             Environment.Exit(1);
         }
         irep = new RiteIREPRecords();
         irep.Read(input);
         isIREP = true;
     }
 }