Breyta

Deila með


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

Definition

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

Type Parameters

T

The type of structure.

Parameters

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

The index in array to start writing from.

count
Int32

The number of structures in array to write.

Attributes

Exceptions

There are not enough bytes in the accessor after position to write the number of structures specified by count.

position is less than zero or greater than the capacity of the accessor.

-or-

offset or count is less than zero.

array is null.

The accessor does not support writing.

The accessor has been disposed.

Applies to