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
ISegmentReferenceThe reference to the beginning of the function.
end
ISegmentReferenceThe reference to the end of the function.
unwindInfo
X64UnwindInfoThe unwind information associated to the function.
Fields
EntrySize
Get th
public const int EntrySize = 12
Field Value
Properties
Begin
Gets the address to the beginning of the referenced function.
public ISegmentReference Begin { get; set; }
Property Value
End
Gets the address to the end of the referenced function.
public ISegmentReference End { get; set; }
Property Value
UnwindInfo
Gets or sets the unwind information associated to the function.
public X64UnwindInfo? UnwindInfo { get; set; }
Property Value
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
PEReaderContextThe reader context.
reader
BinaryStreamReaderThe 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
BinaryStreamWriterThe output stream to write the data to.