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
CodeViewTypeRecordThe type of the bit field.
position
byteThe bit index the bit field starts at.
length
byteThe number of bits the bit field spans.
BitFieldTypeRecord(uint)
Initializes an empty bit field record.
protected BitFieldTypeRecord(uint typeIndex)
Parameters
typeIndex
uintThe 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
Length
Gets or sets the number of bits that this bit fields spans.
public byte Length { get; set; }
Property Value
Position
Gets or sets the bit index that this bit fields starts at.
public byte Position { get; set; }
Property Value
Type
Gets or sets the base type that this bit field is referencing.
public CodeViewTypeRecord? Type { get; set; }
Property Value
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.