UnmanagedMemoryAccessor.WriteArray<T>(Int64, T[], Int32, Int32) Metoda

Definicja

Zapisuje struktury z tablicy typu T do metody dostępu.

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)

Parametry typu

T

Typ struktury.

Parametry

position
Int64

Liczba bajtów do metody dostępu, w której należy rozpocząć pisanie.

array
T[]

Tablica do zapisu w metodzie dostępu.

offset
Int32

Indeks do array rozpoczęcia pisania od.

count
Int32

Liczba struktur do array zapisu.

Atrybuty

Wyjątki

Za mało bajtów w metodzie dostępu po position zapisaniu liczby struktur określonych przez countmetodę .

position jest mniejsza niż zero lub większa niż pojemność metody dostępu.

-lub-

offset wartość lub count jest mniejsza niż zero.

array to null.

Akcesorium nie obsługuje pisania.

Akcesorium zostało usunięte.

Dotyczy