Click or drag to resize

ITypedArrayT Interface

Represents a JavaScript typed array.

Namespace:  Microsoft.ClearScript.JavaScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.3.1
Syntax
public interface ITypedArray<T> : ITypedArray, 
	IArrayBufferView

Type Parameters

T
The typed array's element type.

The ITypedArrayT type exposes the following members.

Properties
  NameDescription
Public propertyArrayBuffer
Gets view's underlying ArrayBuffer.
(Inherited from IArrayBufferView.)
Public propertyLength
Gets the typed array's length.
(Inherited from ITypedArray.)
Public propertyOffset
Gets the view's offset within the underlying ArrayBuffer.
(Inherited from IArrayBufferView.)
Public propertySize
Gets the view's size in bytes.
(Inherited from IArrayBufferView.)
Top
Methods
  NameDescription
Public methodGetBytes
Creates a byte array containing a copy of the view's contents.
(Inherited from IArrayBufferView.)
Public methodInvokeWithDirectAccess(ActionIntPtr)
Invokes a delegate that returns no value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView.)
Public methodInvokeWithDirectAccessT(FuncIntPtr, T)
Invokes a delegate that returns a value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView.)
Public methodRead
Copies elements from the typed array into the specified array.
Public methodReadBytes
Copies bytes from the view into the specified byte array.
(Inherited from IArrayBufferView.)
Public methodToArray
Creates an array containing a copy of the typed array's contents.
Public methodWrite
Copies elements from the specified array into the typed array.
Public methodWriteBytes
Copies bytes from the specified byte array into the view.
(Inherited from IArrayBufferView.)
Top
Remarks

The following table lists the specific interfaces implemented by JavaScript typed arrays:

Typed ArrayInterface(s) (C#)
Uint8ArrayITypedArray<byte>
Uint8ClampedArrayITypedArray<byte>
Int8ArrayITypedArray<sbyte>
Uint16ArrayITypedArray<ushort> and ITypedArray<char>
Int16ArrayITypedArray<short>
Uint32ArrayITypedArray<uint>
Int32ArrayITypedArray<int>
BigUint64ArrayITypedArray<ulong>
BigInt64ArrayITypedArray<long>
Float32ArrayITypedArray<float>
Float64ArrayITypedArray<double>

See Also