public void WriteOffset(int i, FileOutput fo) { Offsets.Add(new RelocOffset() { Value = i, output = fo, Position = data.Count }); writeInt(i); }
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); } }