Language

JniMarshal.SafeInvokeFunc Method

Definition

Overloads

Name Description
SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,TResult>(IntPtr, IntPtr, T0, T1, T2, delegate*<IntPtr, IntPtr, T0, T1, T2, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,TResult>(IntPtr, IntPtr, T0, T1, delegate*<IntPtr, IntPtr, T0, T1, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,TResult>(IntPtr, IntPtr, T0, delegate*<IntPtr, IntPtr, T0, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<TResult>(IntPtr, IntPtr, delegate*<IntPtr, IntPtr, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10, T11 p11, T12 p12, T13 p13, T14 p14, T15 p15, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * 'T10 * 'T11 * 'T12 * 'T13 * 'T14 * 'T15 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

T10

The type of the extra callback argument p10.

T11

The type of the extra callback argument p11.

T12

The type of the extra callback argument p12.

T13

The type of the extra callback argument p13.

T14

The type of the extra callback argument p14.

T15

The type of the extra callback argument p15.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

p10
T10

The eleventh extra argument, passed unchanged to the callback.

p11
T11

The twelfth extra argument, passed unchanged to the callback.

p12
T12

The thirteenth extra argument, passed unchanged to the callback.

p13
T13

The fourteenth extra argument, passed unchanged to the callback.

p14
T14

The fifteenth extra argument, passed unchanged to the callback.

p15
T15

The sixteenth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10, T11 p11, T12 p12, T13 p13, T14 p14, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * 'T10 * 'T11 * 'T12 * 'T13 * 'T14 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

T10

The type of the extra callback argument p10.

T11

The type of the extra callback argument p11.

T12

The type of the extra callback argument p12.

T13

The type of the extra callback argument p13.

T14

The type of the extra callback argument p14.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

p10
T10

The eleventh extra argument, passed unchanged to the callback.

p11
T11

The twelfth extra argument, passed unchanged to the callback.

p12
T12

The thirteenth extra argument, passed unchanged to the callback.

p13
T13

The fourteenth extra argument, passed unchanged to the callback.

p14
T14

The fifteenth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10, T11 p11, T12 p12, T13 p13, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * 'T10 * 'T11 * 'T12 * 'T13 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

T10

The type of the extra callback argument p10.

T11

The type of the extra callback argument p11.

T12

The type of the extra callback argument p12.

T13

The type of the extra callback argument p13.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

p10
T10

The eleventh extra argument, passed unchanged to the callback.

p11
T11

The twelfth extra argument, passed unchanged to the callback.

p12
T12

The thirteenth extra argument, passed unchanged to the callback.

p13
T13

The fourteenth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10, T11 p11, T12 p12, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * 'T10 * 'T11 * 'T12 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

T10

The type of the extra callback argument p10.

T11

The type of the extra callback argument p11.

T12

The type of the extra callback argument p12.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

p10
T10

The eleventh extra argument, passed unchanged to the callback.

p11
T11

The twelfth extra argument, passed unchanged to the callback.

p12
T12

The thirteenth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10, T11 p11, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * 'T10 * 'T11 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

T10

The type of the extra callback argument p10.

T11

The type of the extra callback argument p11.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

p10
T10

The eleventh extra argument, passed unchanged to the callback.

p11
T11

The twelfth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, T10 p10, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * 'T10 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

T10

The type of the extra callback argument p10.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

p10
T10

The eleventh extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * 'T9 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

T9

The type of the extra callback argument p9.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

p9
T9

The tenth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,T8,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

T8

The type of the extra callback argument p8.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

p8
T8

The ninth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, T8, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, T8, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,T7,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

T7

The type of the extra callback argument p7.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

p7
T7

The eighth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, T7, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, T7, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,T6,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

T6

The type of the extra callback argument p6.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

p6
T6

The seventh extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, T6, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, T6, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,T5,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,T5,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'T5, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

T5

The type of the extra callback argument p5.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

p5
T5

The sixth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, T5, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, T5, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,T4,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, T4, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,T4,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * 'T4 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'T4, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

T4

The type of the extra callback argument p4.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

p4
T4

The fifth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, T4, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, T4, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,T3,TResult>(IntPtr, IntPtr, T0, T1, T2, T3, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,T3,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, T3 p3, delegate*<IntPtr, IntPtr, T0, T1, T2, T3, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * 'T3 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'T3, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

T3

The type of the extra callback argument p3.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

p3
T3

The fourth extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, T3, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, T3, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,T2,TResult>(IntPtr, IntPtr, T0, T1, T2, delegate*<IntPtr, IntPtr, T0, T1, T2, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,T2,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, T2 p2, delegate*<IntPtr, IntPtr, T0, T1, T2, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * 'T2 * delegate*<nativeint, nativeint, 'T0, 'T1, 'T2, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

T2

The type of the extra callback argument p2.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

p2
T2

The third extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, T2, TResult>

delegate*<nativeint, nativeint, T0, T1, T2, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,T1,TResult>(IntPtr, IntPtr, T0, T1, delegate*<IntPtr, IntPtr, T0, T1, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,T1,TResult>(IntPtr jnienv, IntPtr self, T0 p0, T1 p1, delegate*<IntPtr, IntPtr, T0, T1, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * 'T1 * delegate*<nativeint, nativeint, 'T0, 'T1, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

T1

The type of the extra callback argument p1.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

p1
T1

The second extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, T1, TResult>

delegate*<nativeint, nativeint, T0, T1, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<T0,TResult>(IntPtr, IntPtr, T0, delegate*<IntPtr, IntPtr, T0, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<T0,TResult>(IntPtr jnienv, IntPtr self, T0 p0, delegate*<IntPtr, IntPtr, T0, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * 'T0 * delegate*<nativeint, nativeint, 'T0, 'Result> -> 'Result

Type Parameters

T0

The type of the extra callback argument p0.

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

p0
T0

The first extra argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, T0, TResult>

delegate*<nativeint, nativeint, T0, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to

SafeInvokeFunc<TResult>(IntPtr, IntPtr, delegate*<IntPtr, IntPtr, TResult>)

Invokes a result-producing managed callback within a JNI marshaling transition.

public static TResult SafeInvokeFunc<TResult>(IntPtr jnienv, IntPtr self, delegate*<IntPtr, IntPtr, TResult> action);
static member SafeInvokeFunc : nativeint * nativeint * delegate*<nativeint, nativeint, 'Result> -> 'Result

Type Parameters

TResult

The callback's result type.

Parameters

jnienv
IntPtr

nativeint

The JNI environment pointer used for the transition and passed to the callback.

self
IntPtr

nativeint

The second pointer argument, passed unchanged to the callback.

action

delegate*<IntPtr, IntPtr, TResult>

delegate*<nativeint, nativeint, TResult>

The managed function pointer to invoke synchronously.

Returns

TResult

The callback result, or default(TResult) if entry fails or the runtime handles a callback exception and returns.

Remarks

A failed transition prevents invocation. Callback exceptions are passed to the runtime's OnUserUnhandledException hook. After successful entry, EndMarshalMethod runs in a finally block. Runtime hooks can still throw.

Applies to