Table of Contents

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 Utf8String

The name of the label.

segmentIndex ushort

The index of the segment the label is defined in.

offset uint

The offset within the segment the label is defined at.

attributes ProcedureAttributes

The attributes describing the label.

Properties

Attributes

Gets or sets the attributes describing the label.

public ProcedureAttributes Attributes { get; set; }

Property Value

ProcedureAttributes

CodeViewSymbolType

Gets the type of symbol this record encodes.

public override CodeViewSymbolType CodeViewSymbolType { get; }

Property Value

CodeViewSymbolType

Name

Gets or sets the name of the label.

public Utf8String? Name { get; set; }

Property Value

Utf8String

Offset

Gets or sets the offset within the segment the label is defined at.

public uint Offset { get; set; }

Property Value

uint

SegmentIndex

Gets or sets the index of the segment the label is defined in.

public ushort SegmentIndex { get; set; }

Property Value

ushort

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.