Table of Contents

Class DebugDataEntry

Namespace
AsmResolver.PE.Debug
Assembly
AsmResolver.PE.dll

Represents a single entry in the debug data directory.

public class DebugDataEntry : SegmentBase, ISegment, IOffsetProvider, IWritable
Inheritance
DebugDataEntry
Implements
Derived
Inherited Members

Constructors

DebugDataEntry()

Initializes an empty DebugDataEntry instance.

protected DebugDataEntry()

DebugDataEntry(IDebugDataSegment)

Creates a new instance of the DebugDataEntry class.

public DebugDataEntry(IDebugDataSegment contents)

Parameters

contents IDebugDataSegment

The contents.

Fields

DebugDataEntryHeaderSize

Gets the static size of a single debug data entry header.

public const uint DebugDataEntryHeaderSize = 28

Field Value

uint

Properties

Characteristics

Reserved, must be zero.

public uint Characteristics { get; set; }

Property Value

uint

Contents

Gets or sets the raw contents of the debug data entry.

public IDebugDataSegment? Contents { get; set; }

Property Value

IDebugDataSegment

MajorVersion

Gets or sets the major version number of the debug data format.

public ushort MajorVersion { get; set; }

Property Value

ushort

MinorVersion

Gets or sets the minor version number of the debug data format.

public ushort MinorVersion { get; set; }

Property Value

ushort

TimeDateStamp

Gets or sets the time and date that the debug data was created.

public uint TimeDateStamp { get; set; }

Property Value

uint

Methods

GetContents()

Obtains the contents of the entry.

protected virtual IDebugDataSegment? GetContents()

Returns

IDebugDataSegment

The contents.

Remarks

This method is called upon initialization of the Contents property.

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of bytes.

Write(BinaryStreamWriter)

Serializes the structure to an output stream.

public override void Write(BinaryStreamWriter writer)

Parameters

writer BinaryStreamWriter

The output stream to write the data to.