ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.JavaScript
IArrayBufferView Interface
IArrayBufferView 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

# IArrayBufferViewInvokeWithDirectAccess TArg(ActionIntPtr, TArg, TArg) Method

Invokes a delegate that takes an argument and returns no value, giving it direct access to the view'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<TArg>(
    	Action<IntPtr, TArg> action,
    	 in TArg arg
    )

    Sub InvokeWithDirectAccess(Of TArg) (
    	action As Action(Of IntPtr, TArg),
    	 ByRef arg As TArg
    )

    generic<typename TArg>
    void InvokeWithDirectAccess(
    	Action<IntPtr, TArg>^ action,
    	[InAttribute]  TArg% arg
    )

    abstract InvokeWithDirectAccess :
            action : Action<IntPtr, 'TArg> *
             arg : 'TArg byref -> unit

#### Parameters

action Action IntPtr, TArg
  The delegate to invoke.
arg TArg
  The argument to pass to the delegate.

#### Type Parameters

TArg
  The delegate's argument type.

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

#### Reference

IArrayBufferView Interface
InvokeWithDirectAccess Overload
Microsoft.ClearScript.JavaScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft