Upraviť

Zdieľať cez


SafeBuffer.ReadArray<T>(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;
[<System.CLSCompliant(false)>]
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

The location from which to start reading.

array
T[]

The output array to write to.

index
Int32

The location in the output array to begin writing to.

count
Int32

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

Attributes

Exceptions

index is less than zero.

-or-

count is less than zero.

array is null.

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

The Initialize method has not been called.

Applies to

See also