internal override void WriteTo(BinaryWriter writer, IAssemblingContext context) { uint size = context.GetFileSize(this); for (int i = 0; i < size; i++) { writer.Write(m_padding); } }
internal override void WriteTo(BinaryWriter writer, IAssemblingContext context) { if (m_target != null) { writer.Write(context.GetFileSize(m_target)); } else { writer.Write((UInt32)0); } }
internal override void WriteTo(BinaryWriter writer, IAssemblingContext context) { uint value = 0; foreach (ImageSection section in m_sections) { if (Match(section)) { value += context.GetFileSize(section); } } writer.Write(value); }