Table of Contents

Class NonOverloadedMethod

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

Represents a single method in a type.

public class NonOverloadedMethod : CodeViewNamedField, ITpiLeaf, ICodeViewLeaf
Inheritance
NonOverloadedMethod
Implements
Derived
Inherited Members

Constructors

NonOverloadedMethod(Utf8String, CodeViewFieldAttributes, MemberFunctionLeaf)

Creates a new overloaded method.

public NonOverloadedMethod(Utf8String name, CodeViewFieldAttributes attributes, MemberFunctionLeaf function)

Parameters

name Utf8String

The name of the method.

attributes CodeViewFieldAttributes

The attributes associated to the method.

function MemberFunctionLeaf

The function that is referenced by the method.

NonOverloadedMethod(Utf8String, CodeViewFieldAttributes, uint, MemberFunctionLeaf)

Creates a new overloaded method.

public NonOverloadedMethod(Utf8String name, CodeViewFieldAttributes attributes, uint vTableOffset, MemberFunctionLeaf function)

Parameters

name Utf8String

The name of the method.

attributes CodeViewFieldAttributes

The attributes associated to the method.

vTableOffset uint

The offset to the slot the virtual function table that this method occupies.

function MemberFunctionLeaf

The function that is referenced by the method.

NonOverloadedMethod(uint)

Initializes an empty non-overloaded method.

protected NonOverloadedMethod(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the method.

Properties

Function

Gets or sets the function that is referenced by this method.

public MemberFunctionLeaf? Function { get; set; }

Property Value

MemberFunctionLeaf

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

VTableOffset

When this method is an introducing virtual method, gets or sets the offset to the slot the virtual function table that this method occupies.

public uint VTableOffset { get; set; }

Property Value

uint

Methods

GetFunction()

Obtains the function that this method references.

protected virtual MemberFunctionLeaf? GetFunction()

Returns

MemberFunctionLeaf

The function.

Remarks

This method is called upon initialization of the Function property.