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
Utf8StringThe name of the method.
attributes
CodeViewFieldAttributesThe attributes associated to the method.
function
MemberFunctionLeafThe 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
Utf8StringThe name of the method.
attributes
CodeViewFieldAttributesThe attributes associated to the method.
vTableOffset
uintThe offset to the slot the virtual function table that this method occupies.
function
MemberFunctionLeafThe function that is referenced by the method.
NonOverloadedMethod(uint)
Initializes an empty non-overloaded method.
protected NonOverloadedMethod(uint typeIndex)
Parameters
typeIndex
uintThe 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
LeafKind
Gets the type kind this record encodes.
public override CodeViewLeafKind LeafKind { get; }
Property Value
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
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.