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

定義

T 型の配列からアクセサーに構造体を書き込みます。Writes structures from an array of type T into the accessor.

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;
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

構造体の型。The type of structure.

パラメーター

position
Int64

アクセサーの書き込み開始位置 (バイト数)。The number of bytes into the accessor at which to begin writing.

array
T[]

アクセサーに書き込む配列。The array to write into the accessor.

offset
Int32

書き込みの開始位置を示す、array のインデックス。The index in array to start writing from.

count
Int32

書き込む array 内の構造体の数。The number of structures in array to write.

属性

例外

position で指定された構造体の数を書き込むための、count の後のアクセサー内のバイト数が不足しています。There are not enough bytes in the accessor after position to write the number of structures specified by count.

position が、0 未満か、アクセサーの容量を超えています。position is less than zero or greater than the capacity of the accessor.

- または --or- offset または count が 0 未満です。offset or count is less than zero.

arraynullです。array is null.

アクセサーが書き込みをサポートしていません。The accessor does not support writing.

アクセサーは破棄されています。The accessor has been disposed.

適用対象