JniValueMarshaler Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines conversion between managed values and JNI, and argument-state cleanup.
public abstract class JniValueMarshaler
type JniValueMarshaler = class
- Inheritance
-
JniValueMarshaler
- 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() |
Initializes the value marshaler base class. |
Properties
| Name | Description |
|---|---|
| IsJniValueType |
Gets whether the marshaler uses a primitive JNI value representation. |
| MarshalType |
Gets the managed type of the native marshaling representation. |
Methods
| Name | Description |
|---|---|
| CreateArgumentState(Object, ParameterAttributes) |
Creates argument state. The base implementation delegates to |
| CreateObjectReferenceArgumentState(Object, ParameterAttributes) |
Creates argument state containing an object reference for a managed value. |
| CreateParameterFromManagedExpression(JniValueMarshalerContext, ParameterExpression, ParameterAttributes) |
Creates an expression for a managed argument's JNI representation. The base implementation adds setup and cleanup for a JNI object reference. |
| CreateParameterToManagedExpression(JniValueMarshalerContext, ParameterExpression, ParameterAttributes, Type) |
Creates an expression that converts a JNI argument to a managed value. The base implementation converts a JNI handle through |
| CreateReturnValueFromManagedExpression(JniValueMarshalerContext, ParameterExpression) |
Creates expressions for a managed return value. The base implementation prepares a JNI return handle. |
| CreateValue(JniObjectReference, JniObjectReferenceOptions, Type) |
Converts a JNI object reference to a managed value. |
| DestroyArgumentState(Object, JniValueMarshalerState, ParameterAttributes) |
Completes argument synchronization and releases implementation-owned marshaling state. |
| DisposeObjectReference(Expression) |
Builds a call that disposes a JNI object reference by reference. |
| ReturnObjectReferenceToJni(JniValueMarshalerContext, String, Expression) |
Adds an expression that prepares a JNI return handle. |