Class FunctionIdentifier
- Namespace
- AsmResolver.Symbols.Pdb.Leaves
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a function identifier, consisting of its name and its signature.
public class FunctionIdentifier : CodeViewLeaf, IIpiLeaf, ICodeViewLeaf
- Inheritance
-
FunctionIdentifier
- Implements
- Derived
- Inherited Members
Constructors
FunctionIdentifier(uint)
Initializes an empty function identifier leaf.
protected FunctionIdentifier(uint typeIndex)
Parameters
typeIndex
uintThe type index.
FunctionIdentifier(uint, Utf8String, CodeViewTypeRecord)
Creates a new function identifier leaf.
public FunctionIdentifier(uint scopeId, Utf8String name, CodeViewTypeRecord functionType)
Parameters
scopeId
uintThe identifier of the scope defining the function (if available).
name
Utf8StringThe name of the function.
functionType
CodeViewTypeRecordThe type describing the shape of the function.
Properties
FunctionType
Gets or sets the type describing the shape of the function.
public CodeViewTypeRecord? FunctionType { get; set; }
Property Value
LeafKind
Gets the type kind this record encodes.
public override CodeViewLeafKind LeafKind { get; }
Property Value
Name
Gets or sets the name of the function.
public Utf8String? Name { get; set; }
Property Value
ScopeId
Gets or sets the identifier of the scope defining the function (if available).
public uint ScopeId { get; set; }
Property Value
Methods
GetFunctionType()
Obtains the type of the function.
protected virtual CodeViewTypeRecord? GetFunctionType()
Returns
- CodeViewTypeRecord
The type.
Remarks
This method is called upon initialization of the FunctionType property.
GetName()
Obtains the name of the function.
protected virtual Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.