IArrayBuffer.InvokeWithDirectAccess<TArg, TResult>(Func<IntPtr, TArg, TResult>, TArg) Method |
Invokes a delegate that takes an argument and returns a value, giving it direct access to the ArrayBuffer's contents.
Namespace: Microsoft.ClearScript.JavaScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
SyntaxTResult InvokeWithDirectAccess<TArg, TResult>(
Func<IntPtr, TArg, TResult> func,
in TArg arg
)
Function InvokeWithDirectAccess(Of TArg, TResult) (
func As Func(Of IntPtr, TArg, TResult),
ByRef arg As TArg
) As TResult
generic<typename TArg, typename TResult>
TResult InvokeWithDirectAccess(
Func<IntPtr, TArg, TResult>^ func,
[InAttribute] TArg% arg
)
abstract InvokeWithDirectAccess :
func : Func<IntPtr, 'TArg, 'TResult> *
arg : 'TArg byref -> 'TResult
Parameters
- func Func<IntPtr, TArg, TResult>
- The delegate to invoke.
- arg TArg
- The argument to pass to the delegate.
Type Parameters
- TArg
- The delegate's argument type.
- TResult
- The delegate's return type.
Return Value
TResultThe delegate's return value.
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