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
TRow
The 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
rid
uintThe 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
row
TRowThe 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
capacity
intThe 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
rid
uintThe 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
rid
uintThe row identifier.
row
TRowThe row to add.
Returns
- MetadataToken
The metadata token that this row was assigned to.