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
-
MetadataTable<TRow>SerializedMetadataTable<TRow>
- Implements
-
ICollection<TRow>IEnumerable<TRow>
- 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
BinaryStreamReaderThe input stream.
tableIndex
TableIndexThe index of the table.
originalLayout
TableLayoutThe layout of the table.
isSorted
boolIndicates the table is sorted or not.
readRow
SerializedMetadataTable<TRow>.ReadRowDelegateThe 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
MetadataReaderContextThe reader context.
reader
BinaryStreamReaderThe input stream.
tableIndex
TableIndexThe index of the table.
originalLayout
TableLayoutThe layout of the table.
isSorted
boolIndicates the table is sorted or not.
readRow
SerializedMetadataTable<TRow>.ReadRowExtendedDelegateThe 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.