ITypedArrayT Interface |
Namespace: Microsoft.ClearScript.JavaScript
The ITypedArrayT type exposes the following members.
Name | Description | |
---|---|---|
![]() | ArrayBuffer |
Gets view's underlying ArrayBuffer.
(Inherited from IArrayBufferView.) |
![]() | Length |
Gets the typed array's length.
(Inherited from ITypedArray.) |
![]() | Offset |
Gets the view's offset within the underlying ArrayBuffer.
(Inherited from IArrayBufferView.) |
![]() | Size |
Gets the view's size in bytes.
(Inherited from IArrayBufferView.) |
Name | Description | |
---|---|---|
![]() | GetBytes |
Creates a byte array containing a copy of the view's contents.
(Inherited from IArrayBufferView.) |
![]() | InvokeWithDirectAccess(ActionIntPtr) |
Invokes a delegate that returns no value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView.) |
![]() | InvokeWithDirectAccessT(FuncIntPtr, T) |
Invokes a delegate that returns a value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView.) |
![]() | Read |
Copies elements from the typed array into the specified array.
|
![]() | ReadBytes |
Copies bytes from the view into the specified byte array.
(Inherited from IArrayBufferView.) |
![]() | ToArray |
Creates an array containing a copy of the typed array's contents.
|
![]() | Write |
Copies elements from the specified array into the typed array.
|
![]() | WriteBytes |
Copies bytes from the specified byte array into the view.
(Inherited from IArrayBufferView.) |
The following table lists the specific interfaces implemented by JavaScript typed arrays:
Typed Array | Interface(s) (C#) |
---|---|
Uint8Array | ITypedArray<byte> |
Uint8ClampedArray | ITypedArray<byte> |
Int8Array | ITypedArray<sbyte> |
Uint16Array | ITypedArray<ushort> and ITypedArray<char> |
Int16Array | ITypedArray<short> |
Uint32Array | ITypedArray<uint> |
Int32Array | ITypedArray<int> |
BigUint64Array | ITypedArray<ulong> |
BigInt64Array | ITypedArray<long> |
Float32Array | ITypedArray<float> |
Float64Array | ITypedArray<double> |