MemoryHandle(Void*, GCHandle, IPinnable) Constructor
Definition
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.
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 = default, System.Buffers.IPinnable? pinnable = default);
[System.CLSCompliant(false)]
public MemoryHandle (void* pointer, System.Runtime.InteropServices.GCHandle handle = default, System.Buffers.IPinnable pinnable = default);
[<System.CLSCompliant(false)>]
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
A handle used to pin array buffers.
- pinnable
- IPinnable
A reference to a manually managed object, or default
if there is no memory manager.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.