Class SectionContribution
- Namespace
- AsmResolver.Symbols.Pdb.Metadata.Dbi
- Assembly
- AsmResolver.Symbols.Pdb.dll
Describes the section in the final executable file that a particular object or module is stored at.
public class SectionContribution : IWritable
- Inheritance
-
SectionContribution
- Implements
- Inherited Members
Fields
EntrySize
The total size in bytes of a single SectionContribution on the disk.
public const int EntrySize = 28
Field Value
Properties
Characteristics
Gets or sets the section flags and permissions associated to this section contribution.
public SectionFlags Characteristics { get; set; }
Property Value
DataCrc
Gets or sets a cyclic redundancy code that can be used to verify the data section of this contribution.
public uint DataCrc { get; set; }
Property Value
ModuleIndex
Gets or sets the index of the module.
public ushort ModuleIndex { get; set; }
Property Value
Offset
Gets or sets the offset within the section that this contribution starts at.
public uint Offset { get; set; }
Property Value
RelocCrc
Gets or sets a cyclic redundancy code that can be used to verify the relocation section of this contribution.
public uint RelocCrc { get; set; }
Property Value
Section
Gets or sets the index of the section.
public ushort Section { get; set; }
Property Value
Size
Gets or sets the size of the section contribution.
public uint Size { get; set; }
Property Value
Methods
FromReader(ref BinaryStreamReader)
Parses a single section contribution from the provided input stream.
public static SectionContribution FromReader(ref BinaryStreamReader reader)
Parameters
reader
BinaryStreamReaderThe input stream.
Returns
- SectionContribution
The parsed section contribution.
GetPhysicalSize()
Computes the number of bytes that the structure contains.
public uint GetPhysicalSize()
Returns
- uint
The number of bytes.
Write(BinaryStreamWriter)
Serializes the structure to an output stream.
public void Write(BinaryStreamWriter writer)
Parameters
writer
BinaryStreamWriterThe output stream to write the data to.