ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.JavaScript
ITypedArray<T> Interface
ITypedArray<T> Methods
Read Method
Read(UInt64, UInt64, T[], UInt64) Method
Read(UInt64, UInt64, Span<T>, UInt64) Method

# ITypedArray T Read(UInt64, UInt64, T, UInt64) Method

Copies elements from the typed array into the specified array.
Namespace: Microsoft.ClearScript.JavaScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    ulong Read(
    	ulong index,
    	ulong length,
    	T[] destination,
    	ulong destinationIndex
    )

    Function Read (
    	index As ULong,
    	length As ULong,
    	destination As T(),
    	destinationIndex As ULong
    ) As ULong

    unsigned long long Read(
    	unsigned long long index,
    	unsigned long long length,
    	array<T>^ destination,
    	unsigned long long destinationIndex
    )

    abstract Read :
            index : uint64 *
            length : uint64 *
            destination : 'T[] *
            destinationIndex : uint64 -> uint64

#### Parameters

index UInt64
  The index within the typed array of the first element to copy.
length UInt64
  The maximum number of elements to copy.
destination T
  The array into which to copy the elements.
destinationIndex UInt64
  The index within destination at which to store the first copied element.

#### Return Value

UInt64
The number of elements copied.
See Also

#### Reference

ITypedArrayT Interface
Read Overload
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft