Table of Contents

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

int

Properties

Characteristics

Gets or sets the section flags and permissions associated to this section contribution.

public SectionFlags Characteristics { get; set; }

Property Value

SectionFlags

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

uint

ModuleIndex

Gets or sets the index of the module.

public ushort ModuleIndex { get; set; }

Property Value

ushort

Offset

Gets or sets the offset within the section that this contribution starts at.

public uint Offset { get; set; }

Property Value

uint

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

uint

Section

Gets or sets the index of the section.

public ushort Section { get; set; }

Property Value

ushort

Size

Gets or sets the size of the section contribution.

public uint Size { get; set; }

Property Value

uint

Methods

FromReader(ref BinaryStreamReader)

Parses a single section contribution from the provided input stream.

public static SectionContribution FromReader(ref BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The 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 BinaryStreamWriter

The output stream to write the data to.