MemoryHandle(Void*, GCHandle, IPinnable) MemoryHandle(Void*, GCHandle, IPinnable) Constructor

Definition

Important

This API is not CLS-compliant.

Creates a new memory handle for the block of memory.

[System.CLSCompliant(false)]
public MemoryHandle (void* pointer, System.Runtime.InteropServices.GCHandle handle = null, System.Buffers.IPinnable pinnable = null);
new System.Buffers.MemoryHandle : nativeptr<unit> * System.Runtime.InteropServices.GCHandle * System.Buffers.IPinnable -> System.Buffers.MemoryHandle

Parameters

pointer
Void*

A pointer to memory.

handle
GCHandle GCHandle

A handle used to pin array buffers.

pinnable
IPinnable IPinnable

A reference to a manually managed object, or default if there is no memory manager.

Applies to