ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.JavaScript
IArrayBufferView Interface
IArrayBufferView Methods
GetBytes Method
InvokeWithDirectAccess Method
ReadBytes Method
WriteBytes Method

# IArrayBufferView Methods

The IArrayBufferView type exposes the following members.

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.
| 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.
| InvokeWithDirectAccessTResult(FuncIntPtr, TResult) | Invokes a delegate that returns a value, giving it direct access to the view's contents.
| InvokeWithDirectAccessTArg(ActionIntPtr, TArg, TArg) | Invokes a delegate that takes an argument and returns no value, giving it direct access to the view's contents.
| 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.
| ReadBytes(UInt64, UInt64, Byte, UInt64) | Copies bytes from the view into the specified byte array.
| ReadBytes(UInt64, UInt64, SpanByte, UInt64) | Copies bytes from the view into the specified byte span.
| 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.
| WriteBytes(ReadOnlySpanByte, UInt64, UInt64, UInt64) | Copies bytes from the specified byte span into the view.

Top
See Also

#### Reference

IArrayBufferView Interface
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft