Beispiel #1
0
 public void WriteOffset(int i, FileOutput fo)
 {
     Offsets.Add(new RelocOffset()
     {
         Value = i, output = fo, Position = data.Count
     });
     writeInt(i);
 }
Beispiel #2
0
 public void writeOutput(FileOutput d)
 {
     foreach (RelocOffset o in d.Offsets)
     {
         o.Position += data.Count;
         Offsets.Add(o);
     }
     foreach (RelocOffset o in Offsets)
     {
         if (o.output == d || o.output == null)
         {
             o.Value += data.Count;
         }
     }
     foreach (byte b in d.data)
     {
         data.Add(b);
     }
 }