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

Definition

Important

This API is not CLS-compliant.

Writes the specified number of value types to a memory location by reading bytes starting from the specified location in the input array.

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)

Type Parameters

T

The value type to write.

Parameters

byteOffset
UInt64

The location in memory to write to.

array
T[]

The input array.

index
Int32

The offset in the array to start reading from.

count
Int32

The number of value types to write.

Attributes

Exceptions

array is null.

index or count is less than zero.

The length of the input array minus index is less than count.

The Initialize method has not been called.

Remarks

Each element in the input array consists of the generic value type of the class.

Applies to

See also