Click or drag to resize

IArrayBuffer.InvokeWithDirectAccess<TArg>(Action<IntPtr, TArg>, TArg) Method

Invokes a delegate that takes an argument and 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
void InvokeWithDirectAccess<TArg>(
	Action<IntPtr, TArg> action,
	 in TArg arg
)

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