Table of Contents

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 uint

The 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 TRow

The 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 int

The 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 uint

The 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 uint

The row identifier.

row TRow

The row to add.

Returns

MetadataToken

The metadata token that this row was assigned to.