IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Runtime.JNI.JNINativeInterface.JNINativeInterfaceHandle Class Reference

Maintains a JNINativeInterface structure in memory. More...

Inheritance diagram for IKVM.Runtime.JNI.JNINativeInterface.JNINativeInterfaceHandle:

Public Member Functions

 JNINativeInterfaceHandle ()
 Initializes a new instance.
 

Static Public Attributes

static readonly JNINativeInterfaceHandle Instance = new()
 Gets a reference to the JNINativeInterface instance.
 

Protected Member Functions

override bool ReleaseHandle ()
 Releases the handle.
 

Properties

JNINativeInterfaceHandle [get]
 Gets the handle to the JNIEnv structure.
 

Detailed Description

Maintains a JNINativeInterface structure in memory.

Definition at line 48 of file JNINativeInterface.cs.

Constructor & Destructor Documentation

◆ JNINativeInterfaceHandle()

IKVM.Runtime.JNI.JNINativeInterface.JNINativeInterfaceHandle.JNINativeInterfaceHandle ( )

Initializes a new instance.

Definition at line 59 of file JNINativeInterface.cs.

59 :
60 base(true)
61 {
62 SetHandle(Marshal.AllocHGlobal(sizeof(JNINativeInterface)));
63 }
static JNINativeInterface()
Initializes the static instance.

Member Function Documentation

◆ ReleaseHandle()

override bool IKVM.Runtime.JNI.JNINativeInterface.JNINativeInterfaceHandle.ReleaseHandle ( )
protected

Releases the handle.

Returns

Definition at line 74 of file JNINativeInterface.cs.

75 {
76 Marshal.FreeHGlobal(handle);
77 return true;
78 }
static readonly JNINativeInterfaceHandle handle

Member Data Documentation

◆ Instance

readonly JNINativeInterfaceHandle IKVM.Runtime.JNI.JNINativeInterface.JNINativeInterfaceHandle.Instance = new()
static

Gets a reference to the JNINativeInterface instance.

Definition at line 54 of file JNINativeInterface.cs.

Property Documentation

◆ Handle

JNINativeInterface* IKVM.Runtime.JNI.JNINativeInterface.JNINativeInterfaceHandle.Handle
get

Gets the handle to the JNIEnv structure.

Definition at line 68 of file JNINativeInterface.cs.


The documentation for this class was generated from the following file: