Class LabelSymbol
- Namespace
- AsmResolver.Symbols.Pdb.Records
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a named label within an instruction stream.
public class LabelSymbol : CodeViewSymbol, ICodeViewSymbol
- Inheritance
-
LabelSymbol
- Implements
- Derived
- Inherited Members
Constructors
LabelSymbol()
Initializes an empty label symbol.
protected LabelSymbol()
LabelSymbol(Utf8String, ushort, uint, ProcedureAttributes)
Creates a new label symbol.
public LabelSymbol(Utf8String name, ushort segmentIndex, uint offset, ProcedureAttributes attributes)
Parameters
name
Utf8StringThe name of the label.
segmentIndex
ushortThe index of the segment the label is defined in.
offset
uintThe offset within the segment the label is defined at.
attributes
ProcedureAttributesThe attributes describing the label.
Properties
Attributes
Gets or sets the attributes describing the label.
public ProcedureAttributes Attributes { get; set; }
Property Value
CodeViewSymbolType
Gets the type of symbol this record encodes.
public override CodeViewSymbolType CodeViewSymbolType { get; }
Property Value
Name
Gets or sets the name of the label.
public Utf8String? Name { get; set; }
Property Value
Offset
Gets or sets the offset within the segment the label is defined at.
public uint Offset { get; set; }
Property Value
SegmentIndex
Gets or sets the index of the segment the label is defined in.
public ushort SegmentIndex { get; set; }
Property Value
Methods
GetName()
Obtains the name of the label.
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.