MemoryHandle 结构
定义
为内存块提供一个内存句柄。Provides a memory handle for a block of memory.
public value class MemoryHandle : IDisposable
public struct MemoryHandle : IDisposable
type MemoryHandle = struct
interface IDisposable
Public Structure MemoryHandle
Implements IDisposable
- 继承
- 实现
注解
MemoryHandle实例表示固定内存块的句柄。A MemoryHandle instance represents a handle to a pinned block of memory. 它由以下方法返回:It is returned by the following methods:
构造函数
| MemoryHandle(Void*, GCHandle, IPinnable) |
为内存块创建新的内存句柄。Creates a new memory handle for the block of memory. |
属性
| Pointer |
返回指向内存块的指针。Returns a pointer to the memory block. |
方法
| Dispose() |
释放已固定的句柄并释放 IPinnable 实例。Frees the pinned handle and releases the IPinnable instance. |