Table of Contents

Class PEFileBuilderContext

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

Provides a working space for constructing a portable executable file.

public class PEFileBuilderContext
Inheritance
PEFileBuilderContext
Derived
Inherited Members

Constructors

PEFileBuilderContext(PEImage)

Creates a new PE file builder context.

public PEFileBuilderContext(PEImage image)

Parameters

image PEImage

The image to build.

Properties

ClrBootstrapper

Gets the code segment used as a native entry point of the resulting PE file.

public RelocatableSegment? ClrBootstrapper { get; set; }

Property Value

RelocatableSegment?

Remarks

This property might be null if no bootstrapper is to be emitted. For example, since the bootstrapper is a legacy feature from older versions of the CLR, we do not see this segment in managed PE files targeting 64-bit architectures.

DebugDirectory

Gets the buffer that builds up a new debug directory.

public DebugDirectoryBuffer DebugDirectory { get; }

Property Value

DebugDirectoryBuffer

ExportDirectory

Gets the buffer that builds up a new export directory.

public ExportDirectoryBuffer ExportDirectory { get; }

Property Value

ExportDirectoryBuffer

FieldRvaDataReader

Gets the object responsible for reading a field RVA data.

public IFieldRvaDataReader FieldRvaDataReader { get; set; }

Property Value

IFieldRvaDataReader

FieldRvaTable

Gets a table containing all constants used as initial values for fields defined in the .NET assembly.

public SegmentBuilder FieldRvaTable { get; }

Property Value

SegmentBuilder

Image

Gets the input PE image to construct a file for.

public PEImage Image { get; }

Property Value

PEImage

ImportDirectory

Gets the buffer that builds up a new import lookup and address directory.

public ImportDirectoryBuffer ImportDirectory { get; }

Property Value

ImportDirectoryBuffer

MethodBodyTable

Gets a table containing method bodies for methods defined in the .NET assembly.

public MethodBodyTableBuffer MethodBodyTable { get; }

Property Value

MethodBodyTableBuffer

Platform

Gets the target platform of the image.

public Platform Platform { get; }

Property Value

Platform

RelocationsDirectory

Gets the buffer that builds up the base relocations directory.

public RelocationsDirectoryBuffer RelocationsDirectory { get; }

Property Value

RelocationsDirectoryBuffer

ResourceDirectory

Gets the buffer that builds up the win32 resources directory.

public ResourceDirectoryBuffer ResourceDirectory { get; }

Property Value

ResourceDirectoryBuffer