Table of Contents

Class X64RuntimeFunction

Namespace
AsmResolver.PE.Exceptions
Assembly
AsmResolver.PE.dll

Represents a single runtime function in a Structured Exception Handler (SEH) table of a portable executable targeting the x64 (AMD64) architecture.

public class X64RuntimeFunction : IRuntimeFunction, IWritable
Inheritance
X64RuntimeFunction
Implements
Inherited Members

Constructors

X64RuntimeFunction(ISegmentReference, ISegmentReference, X64UnwindInfo?)

Creates a new instance of the X64RuntimeFunction class.

public X64RuntimeFunction(ISegmentReference begin, ISegmentReference end, X64UnwindInfo? unwindInfo)

Parameters

begin ISegmentReference

The reference to the beginning of the function.

end ISegmentReference

The reference to the end of the function.

unwindInfo X64UnwindInfo

The unwind information associated to the function.

Fields

EntrySize

Get th

public const int EntrySize = 12

Field Value

int

Properties

Begin

Gets the address to the beginning of the referenced function.

public ISegmentReference Begin { get; set; }

Property Value

ISegmentReference

End

Gets the address to the end of the referenced function.

public ISegmentReference End { get; set; }

Property Value

ISegmentReference

UnwindInfo

Gets or sets the unwind information associated to the function.

public X64UnwindInfo? UnwindInfo { get; set; }

Property Value

X64UnwindInfo

Methods

FromReader(PEReaderContext, ref BinaryStreamReader)

Reads a single X64RuntimeFunction from the provided input stream.

public static X64RuntimeFunction FromReader(PEReaderContext context, ref BinaryStreamReader reader)

Parameters

context PEReaderContext

The reader context.

reader BinaryStreamReader

The input stream.

Returns

X64RuntimeFunction

The read function entry.

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.