SafeBuffer.ReadArray(UInt64, T[], Int32, Int32) SafeBuffer.ReadArray(UInt64, T[], Int32, Int32) SafeBuffer.ReadArray(UInt64, T[], Int32, Int32) SafeBuffer.ReadArray(UInt64, T[], Int32, Int32) Method

Definition

Important

This API is not CLS-compliant.

Reads the specified number of value types from memory starting at the offset, and writes them into an array starting at the index.

public:
generic <typename T>
 where T : value class void ReadArray(System::UInt64 byteOffset, cli::array <T> ^ array, int index, int count);
[System.CLSCompliant(false)]
public void ReadArray<T> (ulong byteOffset, T[] array, int index, int count) where T : struct;
member this.ReadArray : uint64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub ReadArray(Of T As Structure) (byteOffset As ULong, array As T(), index As Integer, count As Integer)

Type Parameters

T

The value type to read.

Parameters

byteOffset
UInt64 UInt64 UInt64 UInt64

The location from which to start reading.

array
T[]

The output array to write to.

index
Int32 Int32 Int32 Int32

The location in the output array to begin writing to.

count
Int32 Int32 Int32 Int32

The number of value types to read from the input array and to write to the output array.

Exceptions

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

Applies to

See also