Interface IMetadataTableBuffer<TRow>
- Namespace
- AsmResolver.DotNet.Builder.Metadata
- Assembly
- AsmResolver.DotNet.dll
Provides members for constructing a new metadata table.
public interface IMetadataTableBuffer<TRow> : IMetadataTableBuffer where TRow : struct, IMetadataRow
Type Parameters
TRowThe type of rows the table stores.
- Inherited Members
Properties
this[uint]
Gets or sets a row in the metadata table.
TRow this[uint rid] { get; set; }
Parameters
riduintThe identifier of the metadata row.
Property Value
- TRow
Methods
Add(in TRow)
Adds a row to the metadata table.
MetadataToken Add(in TRow row)
Parameters
rowTRowThe row to add.
Returns
- MetadataToken
The metadata token that this row was assigned to.
EnsureCapacity(int)
Ensures the capacity of the table buffer is at least the provided amount of elements.
void EnsureCapacity(int capacity)
Parameters
capacityintThe number of elements to store.
GetRowRef(uint)
Gets or sets a reference to a row in the metadata table.
ref TRow GetRowRef(uint rid)
Parameters
riduintThe identifier of the metadata row.
Returns
- TRow
Insert(uint, in TRow)
Inserts a row into the metadata table at the provided row identifier.
MetadataToken Insert(uint rid, in TRow row)
Parameters
riduintThe row identifier.
rowTRowThe row to add.
Returns
- MetadataToken
The metadata token that this row was assigned to.