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

The location in memory to write to.

array
T[]

The input array.

index
Int32 Int32 Int32 Int32

The offset in the array to start reading from.

count
Int32 Int32 Int32 Int32

The number of value types to write.

Exceptions

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

Remarks

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

Applies to

See also