ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.JavaScript
ITypedArray Interface
ITypedArray Properties
ITypedArray Methods

# ITypedArray Interface

Defines properties and methods common to all JavaScript typed arrays.
Namespace: Microsoft.ClearScript.JavaScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public interface ITypedArray : IArrayBufferView,
    	IJavaScriptObject, IScriptObject, IDisposable

    Public Interface ITypedArray
    	Inherits IArrayBufferView, IJavaScriptObject, IScriptObject, IDisposable

    public interface class ITypedArray : IArrayBufferView,
    	IJavaScriptObject, IScriptObject, IDisposable

    type ITypedArray =
        interface
            interface IArrayBufferView
            interface IJavaScriptObject
            interface IScriptObject
            interface IDisposable
        end

The ITypedArray type exposes the following members.

Properties

| 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.
| 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)

Top
Methods

| 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)
| 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)
| 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)

Top
See Also

#### Reference

Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft