UnmanagedMemoryAccessor.WriteArray(Int64, T[], Int32, Int32) UnmanagedMemoryAccessor.WriteArray(Int64, T[], Int32, Int32) UnmanagedMemoryAccessor.WriteArray(Int64, T[], Int32, Int32) UnmanagedMemoryAccessor.WriteArray(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);
[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)
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 Int64 Int64 Int64

The number of bytes into the accessor at which to begin writing.

array
T[]

The array to write into the accessor.

offset
Int32 Int32 Int32 Int32

The index in array to start writing from.

count
Int32 Int32 Int32 Int32

The number of structures in array to write.

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.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to