UnmanagedMemoryAccessor 构造函数

定义

初始化 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

要分配的内存大小(以字节为单位)。

例外

offsetcapacity 之和大于 buffer

buffernull

offsetcapacity 小于零。

offsetcapacity 之和将环绕地址空间的高端。

适用于

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

例外

offsetcapacity 之和大于 buffer

buffernull

offsetcapacity 小于零。

- 或 -

access 不是有效的 MemoryMappedFileAccess 枚举值。

offsetcapacity 之和将环绕地址空间的高端。

适用于