共用方式為


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

buffernull

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

buffernull

offsetcapacity 小於零。

-或-

access 不是有效的 MemoryMappedFileAccess 列舉值。

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

適用於