Прочетете на английски Редактиране

Споделяне чрез


MemoryManager<T>.Pin(Int32) Method

Definition

Returns a handle to the memory that has been pinned and whose address can be taken.

C#
public abstract System.Buffers.MemoryHandle Pin(int elementIndex = 0);

Parameters

elementIndex
Int32

The offset to the element in the memory buffer at which the returned MemoryHandle points.

Returns

A handle to the memory that has been pinned.

Implements

Applies to

Продукт Версии
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1