UnmanagedMemoryAccessor 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 UnmanagedMemoryAccessor 类的新实例。
重载
UnmanagedMemoryAccessor() |
初始化 UnmanagedMemoryAccessor 类的新实例。 |
UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64) |
使用指定的缓冲区、偏移量和容量初始化 UnmanagedMemoryAccessor 类的新实例。 |
UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64, FileAccess) |
使用指定的缓冲区、偏移量、容量和访问权限初始化 UnmanagedMemoryAccessor 类的新实例。 |
UnmanagedMemoryAccessor()
- Source:
- UnmanagedMemoryAccessor.cs
- Source:
- UnmanagedMemoryAccessor.cs
- Source:
- UnmanagedMemoryAccessor.cs
初始化 UnmanagedMemoryAccessor 类的新实例。
protected:
UnmanagedMemoryAccessor();
protected UnmanagedMemoryAccessor ();
Protected Sub New ()
适用于
UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64)
- Source:
- UnmanagedMemoryAccessor.cs
- Source:
- UnmanagedMemoryAccessor.cs
- Source:
- UnmanagedMemoryAccessor.cs
使用指定的缓冲区、偏移量和容量初始化 UnmanagedMemoryAccessor 类的新实例。
public:
UnmanagedMemoryAccessor(System::Runtime::InteropServices::SafeBuffer ^ buffer, long offset, long capacity);
public UnmanagedMemoryAccessor (System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity);
new System.IO.UnmanagedMemoryAccessor : System.Runtime.InteropServices.SafeBuffer * int64 * int64 -> System.IO.UnmanagedMemoryAccessor
Public Sub New (buffer As SafeBuffer, offset As Long, capacity As Long)
参数
- buffer
- SafeBuffer
要包含访问器的缓冲区。
- offset
- Int64
启动访问器的字节位置。
- capacity
- Int64
要分配的内存大小(以字节为单位)。
例外
offset
与 capacity
之和大于 buffer
。
buffer
为 null
。
offset
或 capacity
小于零。
offset
与 capacity
之和将环绕地址空间的高端。
适用于
UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64, FileAccess)
- Source:
- UnmanagedMemoryAccessor.cs
- Source:
- UnmanagedMemoryAccessor.cs
- Source:
- UnmanagedMemoryAccessor.cs
使用指定的缓冲区、偏移量、容量和访问权限初始化 UnmanagedMemoryAccessor 类的新实例。
public:
UnmanagedMemoryAccessor(System::Runtime::InteropServices::SafeBuffer ^ buffer, long offset, long capacity, System::IO::FileAccess access);
public UnmanagedMemoryAccessor (System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access);
new System.IO.UnmanagedMemoryAccessor : System.Runtime.InteropServices.SafeBuffer * int64 * int64 * System.IO.FileAccess -> System.IO.UnmanagedMemoryAccessor
Public Sub New (buffer As SafeBuffer, offset As Long, capacity As Long, access As FileAccess)
参数
- buffer
- SafeBuffer
要包含访问器的缓冲区。
- offset
- Int64
启动访问器的字节位置。
- capacity
- Int64
要分配的内存大小(以字节为单位)。
- access
- FileAccess
内存允许的访问类型。 默认值为 ReadWrite。
例外
offset
与 capacity
之和大于 buffer
。
buffer
为 null
。
offset
与 capacity
之和将环绕地址空间的高端。