MetadataBuilder.GetOrAddBlob Method

Definition

Overloads

GetOrAddBlob(BlobBuilder)

Adds the specified blob from an immutable byte array to the Blob heap, if it's not there already.

GetOrAddBlob(Byte[])

Adds the specified blob to the Blob heap, if it's not there already.

GetOrAddBlob(ImmutableArray<Byte>)

Adds the specified blob from a byte array to the Blob heap, if it's not there already.

GetOrAddBlob(BlobBuilder)

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

Adds the specified blob from an immutable byte array to the Blob heap, if it's not there already.

public System.Reflection.Metadata.BlobHandle GetOrAddBlob (System.Reflection.Metadata.BlobBuilder value);

Parameters

value
BlobBuilder

The blob builder instance containing the blob.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to

.NET 9 en andere versies
Product Versies
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

GetOrAddBlob(Byte[])

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

Adds the specified blob to the Blob heap, if it's not there already.

public System.Reflection.Metadata.BlobHandle GetOrAddBlob (byte[] value);

Parameters

value
Byte[]

The array containing the blob.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to

.NET 9 en andere versies
Product Versies
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

GetOrAddBlob(ImmutableArray<Byte>)

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

Adds the specified blob from a byte array to the Blob heap, if it's not there already.

public System.Reflection.Metadata.BlobHandle GetOrAddBlob (System.Collections.Immutable.ImmutableArray<byte> value);

Parameters

value
ImmutableArray<Byte>

The array containing the blob.

Returns

A handle to the added or existing blob.

Exceptions

value is null.

Applies to

.NET 9 en andere versies
Product Versies
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)