public Write ( LinkerFormatType elfType, |
||
elfType | LinkerFormatType | Type of the elf. |
writer | The writer. | |
return | void |
public void WriteSectionHeader(LinkerFormatType elfType, BinaryWriter writer) { var header = new SectionHeaderEntry(); header.Name = NameIndex; header.Address = Address; header.Offset = Offset; header.Size = Size; header.EntrySize = EntrySize; header.AddressAlignment = AddressAlignment; header.Type = Type; header.Flags = Flags; header.Link = Link == null ? 0 : Link.Index; header.Info = Info == null ? 0 : Info.Index; header.Write(elfType, writer); }
public void WriteSectionHeader(LinkerFormatType elfType, BinaryWriter writer) { var header = new SectionHeaderEntry() { Name = NameIndex, Address = Address, Offset = Offset, Size = Size, EntrySize = EntrySize, AddressAlignment = AddressAlignment, Type = Type, Flags = Flags, Link = Link?.Index ?? 0, Info = Info?.Index ?? 0 }; header.Write(elfType, writer); }
public void WriteSectionHeader(LinkerFormatType elfType, BinaryWriter writer) { var header = new SectionHeaderEntry(); header.Name = NameIndex; header.Address = Address; header.Offset = Offset; header.Size = Size; header.EntrySize = EntrySize; header.AddressAlignment = AddressAlignment; header.Type = Type; header.Flags = Flags; header.Link = Link == null ? 0 : Link.Index; header.Info = Info == null ? 0 : Info.Index; header.Write(elfType, writer); }