Language

JniValueMarshaler<T> Class

Definition

Supplies typed conversion and argument-state operations for a managed value type.

public abstract class JniValueMarshaler<T> : Java.Interop.JniValueMarshaler
type JniValueMarshaler<'T> = class
    inherit JniValueMarshaler

Type Parameters

T

The managed value type handled by the marshaler.

Inheritance
JniValueMarshaler<T>
Derived

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
JniValueMarshaler<T>()

Initializes the typed value marshaler base class.

Properties

Name Description
IsJniValueType

Gets whether the marshaler uses a primitive JNI value representation.

(Inherited from JniValueMarshaler)
MarshalType

Gets the managed type of the native marshaling representation.

(Inherited from JniValueMarshaler)

Methods

Name Description
CreateArgumentState(Object, ParameterAttributes)

Casts an object to T and creates typed argument state.

CreateGenericArgumentState(T, ParameterAttributes)

Creates typed argument state through CreateGenericObjectReferenceArgumentState.

CreateGenericObjectReferenceArgumentState(T, ParameterAttributes)

Creates object-reference argument state for a typed value.

CreateGenericValue(JniObjectReference, JniObjectReferenceOptions, Type)

Converts a JNI object reference to a value of T.

CreateObjectReferenceArgumentState(Object, ParameterAttributes)

Casts an object to T and creates typed object-reference argument state.

CreateParameterFromManagedExpression(JniValueMarshalerContext, ParameterExpression, ParameterAttributes)

Builds setup and cleanup expressions for a managed argument's JNI handle.

(Inherited from JniValueMarshaler)
CreateParameterToManagedExpression(JniValueMarshalerContext, ParameterExpression, ParameterAttributes, Type)

Builds an expression that converts a JNI handle through CreateValue.

(Inherited from JniValueMarshaler)
CreateReturnValueFromManagedExpression(JniValueMarshalerContext, ParameterExpression)

Builds expressions that marshal a managed value and transfer a local JNI reference.

(Inherited from JniValueMarshaler)
CreateValue(JniObjectReference, JniObjectReferenceOptions, Type)

Converts a JNI reference through the typed conversion implementation.

DestroyArgumentState(Object, JniValueMarshalerState, ParameterAttributes)

Casts the original value to T and invokes typed state cleanup.

DestroyGenericArgumentState(T, JniValueMarshalerState, ParameterAttributes)

Completes synchronization and cleanup for a typed argument.

ReturnObjectReferenceToJni(JniValueMarshalerContext, String, Expression)

Adds an expression that creates and transfers a local JNI return reference.

(Inherited from JniValueMarshaler)

Applies to