SafeBuffer.WriteArray<T>(UInt64, T[], Int32, Int32) 方法

定義

重要

此 API 不符合 CLS 規範。

先從輸入陣列中指定的位置開始讀取位元組,再將指定數目的實值型別寫入至記憶體位置。

public:
generic <typename T>
 where T : value class void WriteArray(System::UInt64 byteOffset, cli::array <T> ^ array, int index, int count);
[System.CLSCompliant(false)]
public void WriteArray<T> (ulong byteOffset, T[] array, int index, int count) where T : struct;
[<System.CLSCompliant(false)>]
member this.WriteArray : uint64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub WriteArray(Of T As Structure) (byteOffset As ULong, array As T(), index As Integer, count As Integer)

類型參數

T

要寫入的實值型別。

參數

byteOffset
UInt64

要寫入的記憶體中的位置。

array
T[]

輸入陣列。

index
Int32

陣列中要開始讀取的位移。

count
Int32

要寫入的實值型別數目。

屬性

例外狀況

arraynull

indexcount 小於零。

輸入陣列的長度減去 index 小於 count

尚未呼叫 Initialize 方法。

備註

輸入陣列中的每個專案都包含 類別的泛型實值型別。

適用於

另請參閱