ITyped |
public interface ITypedArray<T> : ITypedArray, IArrayBufferView, IJavaScriptObject, IScriptObject, IDisposable where T : struct, new(), Object
The ITypedArrayT type exposes the following members.
| Name | Description | |
|---|---|---|
| ArrayBuffer |
Gets view's underlying ArrayBuffer.
(Inherited from IArrayBufferView) | |
| Engine |
Gets the script engine that owns the object.
(Inherited from IScriptObject) | |
| Flags |
Gets the JavaScript object's attributes.
(Inherited from IJavaScriptObject) | |
| ItemInt32 |
Gets or sets the value of an indexed script object property.
(Inherited from IScriptObject) | |
| ItemString, Object |
Gets or sets the value of a named script object property.
(Inherited from IScriptObject) | |
| Kind |
Gets the JavaScript object kind.
(Inherited from IJavaScriptObject) | |
| Length |
Gets the typed array's length.
(Inherited from ITypedArray) | |
| Offset |
Gets the view's offset within the underlying ArrayBuffer.
(Inherited from IArrayBufferView) | |
| PropertyIndices |
Enumerates the script object's property indices.
(Inherited from IScriptObject) | |
| PropertyNames |
Enumerates the script object's property names.
(Inherited from IScriptObject) | |
| Size |
Gets the view's size in bytes.
(Inherited from IArrayBufferView) |
| Name | Description | |
|---|---|---|
| DeleteProperty(Int32) |
Removes an indexed script object property.
(Inherited from IScriptObject) | |
| DeleteProperty(String) |
Removes a named script object property.
(Inherited from IScriptObject) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) | |
| GetBytes |
Creates a byte array containing a copy of the view's contents.
(Inherited from IArrayBufferView) | |
| GetProperty(Int32) |
Gets the value of an indexed script object property.
(Inherited from IScriptObject) | |
| GetProperty(String, Object) |
Gets the value of a named script object property.
(Inherited from IScriptObject) | |
| Invoke |
Invokes the script object.
(Inherited from IScriptObject) | |
| InvokeAsFunction |
Invokes the script object as a function.
(Inherited from IScriptObject) | |
| InvokeMethod |
Invokes a script object method.
(Inherited from IScriptObject) | |
| InvokeWithDirectAccess(ActionIntPtr) |
Invokes a delegate that returns no value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView) | |
| InvokeWithDirectAccessTResult(FuncIntPtr, TResult) |
Invokes a delegate that returns a value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView) | |
| InvokeWithDirectAccessTArg(ActionIntPtr, TArg, TArg) |
Invokes a delegate that takes an argument and returns no value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView) | |
| InvokeWithDirectAccessTArg, TResult(FuncIntPtr, TArg, TResult, TArg) |
Invokes a delegate that takes an argument and returns a value, giving it direct access to the view's contents.
(Inherited from IArrayBufferView) | |
| Read(UInt64, UInt64, T, UInt64) | Copies elements from the typed array into the specified array. | |
| Read(UInt64, UInt64, SpanT, UInt64) | Copies elements from the typed array into the specified span. | |
| ReadBytes(UInt64, UInt64, Byte, UInt64) |
Copies bytes from the view into the specified byte array.
(Inherited from IArrayBufferView) | |
| ReadBytes(UInt64, UInt64, SpanByte, UInt64) |
Copies bytes from the view into the specified byte span.
(Inherited from IArrayBufferView) | |
| SetProperty(Int32, Object) |
Sets the value of an indexed script object property.
(Inherited from IScriptObject) | |
| SetProperty(String, Object) |
Sets the value of a named script object property.
(Inherited from IScriptObject) | |
| ToArray | Creates an array containing a copy of the typed array's contents. | |
| Write(T, UInt64, UInt64, UInt64) | Copies elements from the specified array into the typed array. | |
| Write(ReadOnlySpanT, UInt64, UInt64, UInt64) | Copies elements from the specified span into the typed array. | |
| WriteBytes(Byte, UInt64, UInt64, UInt64) |
Copies bytes from the specified byte array into the view.
(Inherited from IArrayBufferView) | |
| WriteBytes(ReadOnlySpanByte, UInt64, UInt64, UInt64) |
Copies bytes from the specified byte span 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> |