UnmanagedMemoryAccessor.WriteArray<T>(Int64, T[], Int32, Int32) メソッド

定義

T 型の配列からアクセサーに構造体を書き込みます。

public:
generic <typename T>
 where T : value class void WriteArray(long position, cli::array <T> ^ array, int offset, int count);
public void WriteArray<T> (long position, T[] array, int offset, int count) where T : struct;
[System.Security.SecurityCritical]
public void WriteArray<T> (long position, T[] array, int offset, int count) where T : struct;
member this.WriteArray : int64 * 'T[] * int * int -> unit (requires 'T : struct)
[<System.Security.SecurityCritical>]
member this.WriteArray : int64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub WriteArray(Of T As Structure) (position As Long, array As T(), offset As Integer, count As Integer)

型パラメーター

T

構造体の型。

パラメーター

position
Int64

アクセサーの書き込み開始位置 (バイト数)。

array
T[]

アクセサーに書き込む配列。

offset
Int32

書き込みの開始位置を示す、array のインデックス。

count
Int32

書き込む array 内の構造体の数。

属性

例外

position で指定された構造体の数を書き込むための、count の後のアクセサー内のバイト数が不足しています。

position が、0 未満か、アクセサーの容量を超えています。

- または -

offset または count が 0 未満です。

arraynullです。

アクセサーが書き込みをサポートしていません。

アクセサーは破棄されています。

適用対象