MemoryManager<T>.Pin(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
abstract member Pin : int -> System.Buffers.MemoryHandle
Public MustOverride Function Pin (Optional elementIndex As Integer = 0) As MemoryHandle
- elementIndex
- Int32
The offset to the element in the memory buffer at which the returned MemoryHandle points.
A handle to the memory that has been pinned.
Продукт | Версии |
---|---|
.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 |
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: