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
TRowThe 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
readerBinaryStreamReaderThe input stream.
tableIndexTableIndexThe index of the table.
originalLayoutTableLayoutThe layout of the table.
isSortedboolIndicates the table is sorted or not.
readRowSerializedMetadataTable<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
contextMetadataReaderContextThe reader context.
readerBinaryStreamReaderThe input stream.
tableIndexTableIndexThe index of the table.
originalLayoutTableLayoutThe layout of the table.
isSortedboolIndicates the table is sorted or not.
readRowSerializedMetadataTable<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.