Table of Contents

Class BitFieldTypeRecord

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

Represents a bit field type.

public class BitFieldTypeRecord : CodeViewTypeRecord, ITpiLeaf, ICodeViewLeaf
Inheritance
BitFieldTypeRecord
Implements
Derived
Inherited Members

Constructors

BitFieldTypeRecord(CodeViewTypeRecord, byte, byte)

Creates a new bit field record.

public BitFieldTypeRecord(CodeViewTypeRecord type, byte position, byte length)

Parameters

type CodeViewTypeRecord

The type of the bit field.

position byte

The bit index the bit field starts at.

length byte

The number of bits the bit field spans.

BitFieldTypeRecord(uint)

Initializes an empty bit field record.

protected BitFieldTypeRecord(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the bit field type.

Properties

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

Length

Gets or sets the number of bits that this bit fields spans.

public byte Length { get; set; }

Property Value

byte

Position

Gets or sets the bit index that this bit fields starts at.

public byte Position { get; set; }

Property Value

byte

Type

Gets or sets the base type that this bit field is referencing.

public CodeViewTypeRecord? Type { get; set; }

Property Value

CodeViewTypeRecord

Methods

GetBaseType()

Obtains the base type that the bit field is referencing.

protected virtual CodeViewTypeRecord? GetBaseType()

Returns

CodeViewTypeRecord

The base type.

Remarks

This method is called upon initialization of the Type property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.