Table of Contents

Class ProcedureTypeRecord

Namespace
AsmResolver.Symbols.Pdb.Leaves
Assembly
AsmResolver.Symbols.Pdb.dll

Represents a function pointer or procedure type.

public class ProcedureTypeRecord : CodeViewTypeRecord, ITpiLeaf, ICodeViewLeaf
Inheritance
ProcedureTypeRecord
Implements
Derived
Inherited Members

Constructors

ProcedureTypeRecord(CodeViewCallingConvention, CodeViewTypeRecord, ArgumentListLeaf)

Creates a new procedure type.

public ProcedureTypeRecord(CodeViewCallingConvention callingConvention, CodeViewTypeRecord returnType, ArgumentListLeaf arguments)

Parameters

callingConvention CodeViewCallingConvention

The convention to use when calling the function pointed by values of this type.

returnType CodeViewTypeRecord

The return type of the function.

arguments ArgumentListLeaf

The argument type list of the function.

ProcedureTypeRecord(uint)

Initializes an empty procedure type.

protected ProcedureTypeRecord(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the type.

Properties

Arguments

Gets or sets the list of types of the parameters that this function defines.

public ArgumentListLeaf? Arguments { get; set; }

Property Value

ArgumentListLeaf

Attributes

Gets or sets the attributes associated to the function.

public MemberFunctionAttributes Attributes { get; set; }

Property Value

MemberFunctionAttributes

CallingConvention

Gets or sets the convention that is used when calling the member function.

public CodeViewCallingConvention CallingConvention { get; set; }

Property Value

CodeViewCallingConvention

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

ReturnType

Gets or sets the return type of the function.

public CodeViewTypeRecord? ReturnType { get; set; }

Property Value

CodeViewTypeRecord

Methods

GetArguments()

Obtains the argument types of the procedure..

protected virtual ArgumentListLeaf? GetArguments()

Returns

ArgumentListLeaf

The argument types.

Remarks

This method is called upon initialization of the Arguments property.

GetReturnType()

Obtains the return type of the procedure.

protected virtual CodeViewTypeRecord? GetReturnType()

Returns

CodeViewTypeRecord

The return type.

Remarks

This method is called upon initialization of the ReturnType property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.