Table of Contents

Class UnionTypeRecord

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

Represents a type of a value that may have several representations or formats within the same position of memory.

public class UnionTypeRecord : CodeViewCompositeTypeRecord, ITpiLeaf, ICodeViewLeaf
Inheritance
UnionTypeRecord
Implements
Derived
Inherited Members

Constructors

UnionTypeRecord(uint)

Initializes an empty union type.

protected UnionTypeRecord(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the union.

UnionTypeRecord(ulong)

Creates a new union type with the provided size.

public UnionTypeRecord(ulong size)

Parameters

size ulong

The total size in bytes of the union.

Properties

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

Size

Gets or sets the total size in bytes of the union type.

public ulong Size { get; set; }

Property Value

ulong

UniqueName

Gets or sets the uniquely identifiable name for this type.

public Utf8String UniqueName { get; set; }

Property Value

Utf8String

Methods

GetUniqueName()

Obtains the uniquely identifiable name of the type.

protected virtual Utf8String? GetUniqueName()

Returns

Utf8String

The name.

Remarks

This method is called upon initialization of the UniqueName property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.