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

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

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

    ulong Write(
    	T[] source,
    	ulong sourceIndex,
    	ulong length,
    	ulong index
    )

    Function Write (
    	source As T(),
    	sourceIndex As ULong,
    	length As ULong,
    	index As ULong
    ) As ULong

    unsigned long long Write(
    	array<T>^ source,
    	unsigned long long sourceIndex,
    	unsigned long long length,
    	unsigned long long index
    )

    abstract Write :
            source : 'T[] *
            sourceIndex : uint64 *
            length : uint64 *
            index : uint64 -> uint64

#### Parameters

source T
  The array from which to copy the elements.
sourceIndex UInt64
  The index within source of the first element to copy.
length UInt64
  The maximum number of elements to copy.
index UInt64
  The index within the typed array at which to store the first copied element.

#### Return Value

UInt64
The number of elements copied.
See Also

#### Reference

ITypedArrayT Interface
Write Overload
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft