Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Buffers.​IPinnable
Assembly: System.Runtime
Provides a mechanism for pinning and unpinning objects to prevent the garbage collector from moving them.
Methods
public
MemoryHandle
Pin​(int elementIndex)
elementIndex
The offset to the element within the memory buffer to which the returned <see cref="T:System.Buffers.MemoryHandle" /> points.
Returns A handle to the block of memory.
Pins a block of memory.
public
void
Unpin​()
Frees a block of pinned memory.