共用方式為


UnmanagedMemoryAccessor 建構函式

定義

初始化 UnmanagedMemoryAccessor 類別的新實例。

多載

UnmanagedMemoryAccessor()

初始化 UnmanagedMemoryAccessor 類別的新實例。

UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64)

使用指定的緩衝區、位移和容量,初始化 UnmanagedMemoryAccessor 類別的新實例。

UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64, FileAccess)

使用指定的緩衝區、位移、容量和訪問許可權,初始化 UnmanagedMemoryAccessor 類別的新實例。

UnmanagedMemoryAccessor()

來源:
UnmanagedMemoryAccessor.cs
來源:
UnmanagedMemoryAccessor.cs
來源:
UnmanagedMemoryAccessor.cs

初始化 UnmanagedMemoryAccessor 類別的新實例。

protected:
 UnmanagedMemoryAccessor();
protected UnmanagedMemoryAccessor ();
Protected Sub New ()

適用於

UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64)

來源:
UnmanagedMemoryAccessor.cs
來源:
UnmanagedMemoryAccessor.cs
來源:
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

offsetcapacity 小於零。

offset 加上 capacity 會圍繞位址空間的高端。

適用於

UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64, FileAccess)

來源:
UnmanagedMemoryAccessor.cs
來源:
UnmanagedMemoryAccessor.cs
來源:
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

offsetcapacity 小於零。

-或-

access 不是有效的 MemoryMappedFileAccess 列舉值。

offset 加上 capacity 會圍繞位址空間的高端。

適用於