IArrayBufferViewInvokeWithDirectAccessT(FuncIntPtr, T) 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.4.5
Syntax T InvokeWithDirectAccess<T>(
Func<IntPtr, T> func
)
Function InvokeWithDirectAccess(Of T) (
func As Func(Of IntPtr, T)
) As T
generic<typename T>
T InvokeWithDirectAccess(
Func<IntPtr, T>^ func
)
abstract InvokeWithDirectAccess :
func : Func<IntPtr, 'T> -> 'T
Parameters
- func FuncIntPtr, T
- The delegate to invoke.
Type Parameters
- T
- The delegate's return type.
Return Value
TThe 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