IArrayBufferView.InvokeWithDirectAccess<TResult>(Func<IntPtr, TResult>) Method |
Invokes a delegate that returns a value, giving it direct access to the view's contents.
Namespace: Microsoft.ClearScript.JavaScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
SyntaxTResult InvokeWithDirectAccess<TResult>(
Func<IntPtr, TResult> func
)
Function InvokeWithDirectAccess(Of TResult) (
func As Func(Of IntPtr, TResult)
) As TResult
generic<typename TResult>
TResult InvokeWithDirectAccess(
Func<IntPtr, TResult>^ func
)
abstract InvokeWithDirectAccess :
func : Func<IntPtr, 'TResult> -> 'TResult
Parameters
- func Func<IntPtr, TResult>
- The delegate to invoke.
Type Parameters
- 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 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