Table of Contents

Class RelocationsDirectoryBuffer

Namespace
AsmResolver.PE.Relocations.Builder
Assembly
AsmResolver.PE.dll

Provides a mechanism for building a base relocations directory.

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

Properties

IsEmpty

Gets a value indicating whether there is any data added to the buffer.

public bool IsEmpty { get; }

Property Value

bool

Methods

Add(BaseRelocation)

Adds a single base relocation to the buffer.

public void Add(BaseRelocation relocation)

Parameters

relocation BaseRelocation

The base relocation to add.

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of bytes.

UpdateOffsets(in RelocationParameters)

Assigns a new file and virtual offset to the segment and all its sub-components.

public override void UpdateOffsets(in RelocationParameters parameters)

Parameters

parameters RelocationParameters

The parameters containing the new offset information for the segment.

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.