ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.JavaScript
IArrayBuffer Interface
IArrayBuffer Methods
InvokeWithDirectAccess Method
InvokeWithDirectAccess(Action<IntPtr>) Method
InvokeWithDirectAccess<TResult>(Func<IntPtr, TResult>) Method
InvokeWithDirectAccess<TArg>(Action<IntPtr, TArg>, TArg) Method
InvokeWithDirectAccess<TArg, TResult>(Func<IntPtr, TArg, TResult>, TArg) Method

# IArrayBufferInvokeWithDirectAccess(ActionIntPtr) Method

Invokes a delegate that returns no value, giving it direct access to the ArrayBuffer's contents.
Namespace: Microsoft.ClearScript.JavaScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    void InvokeWithDirectAccess(
    	Action<IntPtr> action
    )

    Sub InvokeWithDirectAccess (
    	action As Action(Of IntPtr)
    )

    void InvokeWithDirectAccess(
    	Action<IntPtr>^ action
    )

    abstract InvokeWithDirectAccess :
            action : Action<IntPtr> -> unit

#### Parameters

action Action IntPtr
  The delegate to invoke.

Remarks
This method invokes the specified delegate, passing in the memory address of the ArrayBuffer's contents. This memory address is valid only while the delegate is executing. The delegate must not access memory outside the ArrayBuffer's range.
See Also

#### Reference

IArrayBuffer Interface
InvokeWithDirectAccess Overload
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft