Table of Contents

Class SerializedMetadataTable<TRow>

Namespace
AsmResolver.PE.DotNet.Metadata.Tables
Assembly
AsmResolver.PE.dll

Provides an implementation of a metadata table that was serialized to a PE file.

public class SerializedMetadataTable<TRow> : MetadataTable<TRow>, IMetadataTable, ICollection, ISegment, IOffsetProvider, IWritable, ICollection<TRow>, IEnumerable<TRow>, IEnumerable where TRow : struct, IMetadataRow

Type Parameters

TRow

The type of rows that this table stores.

Inheritance
SerializedMetadataTable<TRow>
Implements
Inherited Members

Constructors

SerializedMetadataTable(in BinaryStreamReader, TableIndex, TableLayout, bool, ReadRowDelegate)

Reads a metadata table from an input stream.

public SerializedMetadataTable(in BinaryStreamReader reader, TableIndex tableIndex, TableLayout originalLayout, bool isSorted, SerializedMetadataTable<TRow>.ReadRowDelegate readRow)

Parameters

reader BinaryStreamReader

The input stream.

tableIndex TableIndex

The index of the table.

originalLayout TableLayout

The layout of the table.

isSorted bool

Indicates the table is sorted or not.

readRow SerializedMetadataTable<TRow>.ReadRowDelegate

The method to use for reading each row in the table.

SerializedMetadataTable(MetadataReaderContext, in BinaryStreamReader, TableIndex, TableLayout, bool, ReadRowExtendedDelegate)

Reads a metadata table from an input stream.

public SerializedMetadataTable(MetadataReaderContext context, in BinaryStreamReader reader, TableIndex tableIndex, TableLayout originalLayout, bool isSorted, SerializedMetadataTable<TRow>.ReadRowExtendedDelegate readRow)

Parameters

context MetadataReaderContext

The reader context.

reader BinaryStreamReader

The input stream.

tableIndex TableIndex

The index of the table.

originalLayout TableLayout

The layout of the table.

isSorted bool

Indicates the table is sorted or not.

readRow SerializedMetadataTable<TRow>.ReadRowExtendedDelegate

The method to use for reading each row in the table.

Properties

Count

Gets the number of elements contained in the ICollection<T>.

public override int Count { get; }

Property Value

int

The number of elements contained in the ICollection<T>.

Methods

GetRows()

Obtains all rows in the metadata table.

protected override RefList<TRow> GetRows()

Returns

RefList<TRow>

The rows.

Remarks

This method is called upon initialization of the Rows property.