jni

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const (
	JNI_VERSION_1_1 = 0x00010001
	JNI_VERSION_1_2 = 0x00010002
	JNI_VERSION_1_4 = 0x00010004
	JNI_VERSION_1_6 = 0x00010006

	JNI_FALSE = 0
	JNI_TRUE  = 1

	JNI_OK        = 0    /* success */
	JNI_ERR       = (-1) /* unknown error */
	JNI_EDETACHED = (-2) /* thread detached from the VM */
	JNI_EVERSION  = (-3) /* JNI version error */
	JNI_ENOMEM    = (-4) /* not enough memory */
	JNI_EEXIST    = (-5) /* VM already created */
	JNI_EINVAL    = (-6) /* invalid arguments */

	JNI_COMMIT = 1
	JNI_ABORT  = 2
)

Variables

This section is empty.

Functions

func Bool

func Bool(b uint8) bool

func CFree

func CFree(p unsafe.Pointer)

func CMalloc

func CMalloc(capacity int) unsafe.Pointer

func CheckException

func CheckException(env *Env)

func CheckNull

func CheckNull(uin uintptr, msg string)

func CheckNullException

func CheckNullException(msg string, ok func(env *Env), checkNull ...uintptr)

*

*

func GetSelfPath

func GetSelfPath() string

func InitJNI

func InitJNI(jvm uintptr)

func JavaThrowException

func JavaThrowException(msg string)

func NativeThrowException

func NativeThrowException(env *Env, code JavaExceptionCodes, msg string)

func OfSlice

func OfSlice(b []byte) unsafe.Pointer

func PopLocalFrame

func PopLocalFrame(env *Env)

func PrintException

func PrintException(JNIEnv *Env, jthrowable Jthrowable)

func SetVm

func SetVm(mVm VM)

func ThrowException

func ThrowException(msg string)

Types

type Env

type Env uintptr

func AutoGetCurrentThreadEnv

func AutoGetCurrentThreadEnv() *Env

func PushLocalFrame

func PushLocalFrame(nArgs int) *Env

func (Env) AllocObject

func (env Env) AllocObject(clazz Jclass) Jobject

func (Env) CallBooleanMethodA

func (env Env) CallBooleanMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) bool

func (Env) CallByteMethodA

func (env Env) CallByteMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) byte

func (Env) CallCharMethodA

func (env Env) CallCharMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) uint16

func (Env) CallDoubleMethodA

func (env Env) CallDoubleMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) float64

func (Env) CallFloatMethodA

func (env Env) CallFloatMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) float32

func (Env) CallIntMethodA

func (env Env) CallIntMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) int

func (Env) CallLongMethodA

func (env Env) CallLongMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) int64

func (Env) CallNonvirtualBooleanMethodA

func (env Env) CallNonvirtualBooleanMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) bool

func (Env) CallNonvirtualByteMethodA

func (env Env) CallNonvirtualByteMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) byte

func (Env) CallNonvirtualCharMethodA

func (env Env) CallNonvirtualCharMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) uint16

func (Env) CallNonvirtualDoubleMethodA

func (env Env) CallNonvirtualDoubleMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) float64

func (Env) CallNonvirtualFloatMethodA

func (env Env) CallNonvirtualFloatMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) float32

func (Env) CallNonvirtualIntMethodA

func (env Env) CallNonvirtualIntMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) int

func (Env) CallNonvirtualLongMethodA

func (env Env) CallNonvirtualLongMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) int64

func (Env) CallNonvirtualObjectMethodA

func (env Env) CallNonvirtualObjectMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) Jobject

func (Env) CallNonvirtualShortMethodA

func (env Env) CallNonvirtualShortMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue) int16

func (Env) CallNonvirtualVoidMethodA

func (env Env) CallNonvirtualVoidMethodA(obj Jobject, clazz Jclass, methodID JmethodID, args ...Jvalue)

func (Env) CallObjectMethodA

func (env Env) CallObjectMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) Jobject

func (Env) CallShortMethodA

func (env Env) CallShortMethodA(obj Jobject, methodID JmethodID, args ...Jvalue) int16

func (Env) CallStaticBooleanMethodA

func (env Env) CallStaticBooleanMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) bool

func (Env) CallStaticByteMethodA

func (env Env) CallStaticByteMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) byte

func (Env) CallStaticCharMethodA

func (env Env) CallStaticCharMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) uint16

func (Env) CallStaticDoubleMethodA

func (env Env) CallStaticDoubleMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) float64

func (Env) CallStaticFloatMethodA

func (env Env) CallStaticFloatMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) float32

func (Env) CallStaticIntMethodA

func (env Env) CallStaticIntMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) int

func (Env) CallStaticLongMethodA

func (env Env) CallStaticLongMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) int64

func (Env) CallStaticObjectMethodA

func (env Env) CallStaticObjectMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) Jobject

func (Env) CallStaticShortMethodA

func (env Env) CallStaticShortMethodA(clazz Jclass, methodID JmethodID, args ...Jvalue) int16

func (Env) CallStaticVoidMethodA

func (env Env) CallStaticVoidMethodA(cls Jclass, methodID JmethodID, args ...Jvalue)

func (Env) CallVoidMethodA

func (env Env) CallVoidMethodA(obj Jobject, methodID JmethodID, args ...Jvalue)

func (Env) DefineClass

func (env Env) DefineClass(name string, loader Jobject, buf []byte) Jclass

DefineClass DefineClass(JNIEnv *env, const char *name, jobject loader,const jbyte *buf, jsize bufLen)

func (Env) DeleteGlobalRef

func (env Env) DeleteGlobalRef(gref Jobject)

func (Env) DeleteLocalRef

func (env Env) DeleteLocalRef(obj Jobject)

func (Env) DeleteWeakGlobalRef

func (env Env) DeleteWeakGlobalRef(ref Jweak)

func (Env) EnsureLocalCapacity

func (env Env) EnsureLocalCapacity(capacity int) int

func (Env) ExceptionCheck

func (env Env) ExceptionCheck() bool

func (Env) ExceptionClear

func (env Env) ExceptionClear()

func (Env) ExceptionDescribe

func (env Env) ExceptionDescribe()

func (Env) ExceptionOccurred

func (env Env) ExceptionOccurred() Jthrowable

func (Env) FatalError

func (env Env) FatalError(msg string)

func (Env) FindClass

func (env Env) FindClass(name string) Jclass

func (Env) FromReflectedField

func (env Env) FromReflectedField(field Jobject) JfieldID

func (Env) FromReflectedMethod

func (env Env) FromReflectedMethod(method Jobject) JmethodID

func (Env) GetArrayLength

func (env Env) GetArrayLength(array Jarray) int

func (Env) GetBooleanArrayElement

func (env Env) GetBooleanArrayElement(array JbooleanArray, index int) bool

func (Env) GetBooleanArrayElements

func (env Env) GetBooleanArrayElements(array Jarray, isCopy bool) unsafe.Pointer

////////////////////////////////////////////ArrayElements/////////////////////////////////////////////////////////////

func (Env) GetBooleanArrayRegion

func (env Env) GetBooleanArrayRegion(array JbooleanArray, start int, buf []bool)

func (Env) GetBooleanField

func (env Env) GetBooleanField(obj Jobject, fieldID JfieldID) bool

func (Env) GetByteArrayElement

func (env Env) GetByteArrayElement(array JbyteArray, index int) byte

func (Env) GetByteArrayElements

func (env Env) GetByteArrayElements(array Jarray, isCopy bool) unsafe.Pointer

func (Env) GetByteArrayRegion

func (env Env) GetByteArrayRegion(array JbyteArray, start int, buf []byte)

func (Env) GetByteField

func (env Env) GetByteField(obj Jobject, fieldID JfieldID) byte

func (Env) GetCharArrayElement

func (env Env) GetCharArrayElement(array JcharArray, index int) uint16

func (Env) GetCharArrayElements

func (env Env) GetCharArrayElements(array JcharArray, isCopy bool) unsafe.Pointer

func (Env) GetCharArrayRegion

func (env Env) GetCharArrayRegion(array JcharArray, start int, buf []uint16)

func (Env) GetCharField

func (env Env) GetCharField(obj Jobject, fieldID JfieldID) uint16

func (Env) GetDirectBufferAddress

func (env Env) GetDirectBufferAddress(buf Jobject) unsafe.Pointer

func (Env) GetDirectBufferCapacity

func (env Env) GetDirectBufferCapacity(buf Jobject) int

func (Env) GetDoubleArrayElement

func (env Env) GetDoubleArrayElement(array JdoubleArray, index int) float64

func (Env) GetDoubleArrayElements

func (env Env) GetDoubleArrayElements(array JbooleanArray, isCopy bool) unsafe.Pointer

func (Env) GetDoubleArrayRegion

func (env Env) GetDoubleArrayRegion(array JdoubleArray, start int, buf []float64)

func (Env) GetDoubleField

func (env Env) GetDoubleField(obj Jobject, fieldID JfieldID) float64

func (Env) GetFieldID

func (env Env) GetFieldID(clazz Jclass, name string, sig string) JfieldID

func (Env) GetFloatArrayElement

func (env Env) GetFloatArrayElement(array JfloatArray, index int) float32

func (Env) GetFloatArrayElements

func (env Env) GetFloatArrayElements(array JfloatArray, isCopy bool) unsafe.Pointer

func (Env) GetFloatArrayRegion

func (env Env) GetFloatArrayRegion(array JfloatArray, start int, buf []float32)

func (Env) GetFloatField

func (env Env) GetFloatField(obj Jobject, fieldID JfieldID) float32

func (Env) GetIntArrayElement

func (env Env) GetIntArrayElement(array JintArray, index int) int

func (Env) GetIntArrayElements

func (env Env) GetIntArrayElements(array JintArray, isCopy bool) unsafe.Pointer

func (Env) GetIntArrayRegion

func (env Env) GetIntArrayRegion(array JintArray, start int, buf []int32)

func (Env) GetIntField

func (env Env) GetIntField(obj Jobject, fieldID JfieldID) int

func (Env) GetJavaVM

func (env Env) GetJavaVM() (VM, int)

func (Env) GetLongArrayElement

func (env Env) GetLongArrayElement(array JlongArray, index int) int64

func (Env) GetLongArrayElements

func (env Env) GetLongArrayElements(array JlongArray, isCopy bool) unsafe.Pointer

func (Env) GetLongArrayRegion

func (env Env) GetLongArrayRegion(array JlongArray, start int, buf []int64)

func (Env) GetLongField

func (env Env) GetLongField(obj Jobject, fieldID JfieldID) int64

func (Env) GetMethodID

func (env Env) GetMethodID(clazz Jclass, name string, sig string) JmethodID

func (Env) GetObjectArrayElement

func (env Env) GetObjectArrayElement(array JobjectArray, index int) Jobject

func (Env) GetObjectClass

func (env Env) GetObjectClass(obj Jobject) Jclass

func (Env) GetObjectField

func (env Env) GetObjectField(obj Jobject, fieldID JfieldID) Jobject

func (Env) GetObjectRefType

func (env Env) GetObjectRefType(obj Jobject) RefType

func (Env) GetPrimitiveArrayCritical

func (env Env) GetPrimitiveArrayCritical(array Jarray) unsafe.Pointer

func (Env) GetShortArrayElement

func (env Env) GetShortArrayElement(array JshortArray, index int) int16

func (Env) GetShortArrayElements

func (env Env) GetShortArrayElements(array JshortArray, isCopy bool) unsafe.Pointer

func (Env) GetShortArrayRegion

func (env Env) GetShortArrayRegion(array JshortArray, start int, buf []int16)

func (Env) GetShortField

func (env Env) GetShortField(obj Jobject, fieldID JfieldID) int16

func (Env) GetStaticBooleanField

func (env Env) GetStaticBooleanField(clazz Jclass, fieldID JfieldID) bool

func (Env) GetStaticByteField

func (env Env) GetStaticByteField(clazz Jclass, fieldID JfieldID) byte

func (Env) GetStaticCharField

func (env Env) GetStaticCharField(clazz Jclass, fieldID JfieldID) uint16

func (Env) GetStaticDoubleField

func (env Env) GetStaticDoubleField(clazz Jclass, fieldID JfieldID) float64

func (Env) GetStaticFieldID

func (env Env) GetStaticFieldID(clazz Jclass, name string, sig string) JfieldID

func (Env) GetStaticFloatField

func (env Env) GetStaticFloatField(clazz Jclass, fieldID JfieldID) float32

func (Env) GetStaticIntField

func (env Env) GetStaticIntField(clazz Jclass, fieldID JfieldID) int

func (Env) GetStaticLongField

func (env Env) GetStaticLongField(clazz Jclass, fieldID JfieldID) int64

func (Env) GetStaticMethodID

func (env Env) GetStaticMethodID(clazz Jclass, name string, sig string) JmethodID

func (Env) GetStaticObjectField

func (env Env) GetStaticObjectField(clazz Jclass, fieldID JfieldID) Jobject

func (Env) GetStaticShortField

func (env Env) GetStaticShortField(clazz Jclass, fieldID JfieldID) int16

func (Env) GetStringLength

func (env Env) GetStringLength(str Jstring) int

func (Env) GetStringUTF

func (env Env) GetStringUTF(ptr Jstring) []byte

func (Env) GetSuperclass

func (env Env) GetSuperclass(sub Jclass) Jclass

func (Env) GetVersion

func (env Env) GetVersion() int

func (Env) IsAssignableFrom

func (env Env) IsAssignableFrom(sub Jclass, sup Jclass) bool

func (Env) IsInstanceOf

func (env Env) IsInstanceOf(obj Jobject, clazz Jclass) bool

func (Env) IsSameObject

func (env Env) IsSameObject(obj1 Jobject, obj2 Jobject) bool

func (Env) MonitorEnter

func (env Env) MonitorEnter(obj Jobject) int

func (Env) MonitorExit

func (env Env) MonitorExit(obj Jobject) int

func (Env) NewBooleanArray

func (env Env) NewBooleanArray(len int) JbooleanArray

func (Env) NewByteArray

func (env Env) NewByteArray(len int) JbyteArray

func (Env) NewCharArray

func (env Env) NewCharArray(len int) JcharArray

func (Env) NewDirectByteBuffer

func (env Env) NewDirectByteBuffer(address unsafe.Pointer, capacity int) Jobject

func (Env) NewDoubleArray

func (env Env) NewDoubleArray(len int) JdoubleArray

func (Env) NewFloatArray

func (env Env) NewFloatArray(len int) JfloatArray

func (Env) NewGlobalRef

func (env Env) NewGlobalRef(lobj Jobject) Jobject

func (Env) NewIntArray

func (env Env) NewIntArray(len int) JintArray

func (Env) NewLocalRef

func (env Env) NewLocalRef(ref Jobject) Jobject

func (Env) NewLongArray

func (env Env) NewLongArray(len int) JlongArray

func (Env) NewObjectA

func (env Env) NewObjectA(clazz Jclass, methodID JmethodID, args ...Jvalue) Jobject

func (Env) NewObjectArray

func (env Env) NewObjectArray(len int, clazz Jclass, init Jobject) JobjectArray

func (Env) NewShortArray

func (env Env) NewShortArray(len int) JshortArray

func (Env) NewString

func (env Env) NewString(s string) Jstring

func (Env) NewWeakGlobalRef

func (env Env) NewWeakGlobalRef(obj Jobject) Jweak

func (Env) PopLocalFrame

func (env Env) PopLocalFrame(result Jobject) Jobject

func (Env) PushLocalFrame

func (env Env) PushLocalFrame(capacity int) int

func (Env) RegisterNatives

func (env Env) RegisterNatives(class Jclass, methods []JNINativeMethod) int

jclass clazz, const JNINativeMethod* methods, jint nMethods

func (Env) ReleaseBooleanArrayElements

func (env Env) ReleaseBooleanArrayElements(array JbooleanArray, elems uintptr, mode int32)

func (Env) ReleaseByteArrayElements

func (env Env) ReleaseByteArrayElements(array JbyteArray, elems uintptr, mode int32)

func (Env) ReleaseCharArrayElements

func (env Env) ReleaseCharArrayElements(array JcharArray, elems uintptr, mode int32)

func (Env) ReleaseDoubleArrayElements

func (env Env) ReleaseDoubleArrayElements(array JdoubleArray, elems uintptr, mode int32)

func (Env) ReleaseFloatArrayElements

func (env Env) ReleaseFloatArrayElements(array JfloatArray, elems uintptr, mode int32)

func (Env) ReleaseIntArrayElements

func (env Env) ReleaseIntArrayElements(array JintArray, elems uintptr, mode int32)

func (Env) ReleaseLongArrayElements

func (env Env) ReleaseLongArrayElements(array JlongArray, elems uintptr, mode int32)

func (Env) ReleasePrimitiveArrayCritical

func (env Env) ReleasePrimitiveArrayCritical(array Jarray, carray unsafe.Pointer, mode int)

func (Env) ReleaseShortArrayElements

func (env Env) ReleaseShortArrayElements(array JshortArray, elems uintptr, mode int32)

func (Env) SetBooleanArrayElement

func (env Env) SetBooleanArrayElement(array JbooleanArray, index int, v bool)

func (Env) SetBooleanArrayRegion

func (env Env) SetBooleanArrayRegion(array JbooleanArray, start int, buf []bool)

func (Env) SetBooleanField

func (env Env) SetBooleanField(obj Jobject, fieldID JfieldID, val bool)

func (Env) SetByteArrayElement

func (env Env) SetByteArrayElement(array JbyteArray, index int, v byte)

func (Env) SetByteArrayRegion

func (env Env) SetByteArrayRegion(array JbyteArray, start int, buf []byte)

func (Env) SetByteField

func (env Env) SetByteField(obj Jobject, fieldID JfieldID, val byte)

func (Env) SetCharArrayElement

func (env Env) SetCharArrayElement(array JcharArray, index int, v uint16)

func (Env) SetCharArrayRegion

func (env Env) SetCharArrayRegion(array JcharArray, start int, buf []uint16)

func (Env) SetCharField

func (env Env) SetCharField(obj Jobject, fieldID JfieldID, val uint16)

func (Env) SetDoubleArrayElement

func (env Env) SetDoubleArrayElement(array JdoubleArray, index int, v float64)

func (Env) SetDoubleArrayRegion

func (env Env) SetDoubleArrayRegion(array JdoubleArray, start int, buf []float64)

func (Env) SetDoubleField

func (env Env) SetDoubleField(obj Jobject, fieldID JfieldID, val float64)

func (Env) SetFloatArrayElement

func (env Env) SetFloatArrayElement(array JfloatArray, index int, v float32)

func (Env) SetFloatArrayRegion

func (env Env) SetFloatArrayRegion(array JfloatArray, start int, buf []float32)

func (Env) SetFloatField

func (env Env) SetFloatField(obj Jobject, fieldID JfieldID, val float32)

func (Env) SetIntArrayElement

func (env Env) SetIntArrayElement(array JintArray, index int, v int)

func (Env) SetIntArrayRegion

func (env Env) SetIntArrayRegion(array JintArray, start int, buf []int32)

func (Env) SetIntField

func (env Env) SetIntField(obj Jobject, fieldID JfieldID, val int)

func (Env) SetLongArrayElement

func (env Env) SetLongArrayElement(array JlongArray, index int, v int64)

func (Env) SetLongArrayRegion

func (env Env) SetLongArrayRegion(array JlongArray, start int, buf []int64)

func (Env) SetLongField

func (env Env) SetLongField(obj Jobject, fieldID JfieldID, val int64)

func (Env) SetObjectArrayElement

func (env Env) SetObjectArrayElement(array JobjectArray, index int, val Jobject)

func (Env) SetObjectField

func (env Env) SetObjectField(obj Jobject, fieldID JfieldID, val Jobject)

func (Env) SetShortArrayElement

func (env Env) SetShortArrayElement(array JshortArray, index int, v int16)

func (Env) SetShortArrayRegion

func (env Env) SetShortArrayRegion(array JshortArray, start int, buf []int16)

func (Env) SetShortField

func (env Env) SetShortField(obj Jobject, fieldID JfieldID, val int16)

func (Env) SetStaticBooleanField

func (env Env) SetStaticBooleanField(clazz Jclass, fieldID JfieldID, value bool)

func (Env) SetStaticByteField

func (env Env) SetStaticByteField(clazz Jclass, fieldID JfieldID, value byte)

func (Env) SetStaticCharField

func (env Env) SetStaticCharField(clazz Jclass, fieldID JfieldID, value uint16)

func (Env) SetStaticDoubleField

func (env Env) SetStaticDoubleField(clazz Jclass, fieldID JfieldID, value float64)

func (Env) SetStaticFloatField

func (env Env) SetStaticFloatField(clazz Jclass, fieldID JfieldID, value float32)

func (Env) SetStaticIntField

func (env Env) SetStaticIntField(clazz Jclass, fieldID JfieldID, value int)

func (Env) SetStaticLongField

func (env Env) SetStaticLongField(clazz Jclass, fieldID JfieldID, value int64)

func (Env) SetStaticObjectField

func (env Env) SetStaticObjectField(clazz Jclass, fieldID JfieldID, value Jobject)

func (Env) SetStaticShortField

func (env Env) SetStaticShortField(clazz Jclass, fieldID JfieldID, value int16)

func (Env) Throw

func (env Env) Throw(obj Jthrowable) int

func (Env) ThrowNew

func (env Env) ThrowNew(clazz Jclass, msg string) int

func (Env) ToReflectedField

func (env Env) ToReflectedField(cls Jclass, fieldID JfieldID, isStatic bool) Jobject

func (Env) ToReflectedMethod

func (env Env) ToReflectedMethod(cls Jclass, methodID JmethodID, isStatic bool) Jobject

type JNINativeMethod

type JNINativeMethod struct {
	Name  string
	Sig   string
	FnPtr unsafe.Pointer
}

func (*JNINativeMethod) String

func (j *JNINativeMethod) String() string

type Jarray

type Jarray = uintptr

type JavaExceptionCodes

type JavaExceptionCodes int
const (
	JavaOutOfMemoryError JavaExceptionCodes = iota
	JavaIOException
	JavaRuntimeException
	JavaIndexOutOfBoundsException
	JavaArithmeticException
	JavaIllegalArgumentException
	JavaNullPointerException
	JavaDirectorPureVirtual
	JavaUnknownError
	JavaException
)

type JbooleanArray

type JbooleanArray = uintptr

type JbyteArray

type JbyteArray = uintptr

type JcharArray

type JcharArray = uintptr

type Jclass

type Jclass = uintptr

type JdoubleArray

type JdoubleArray = uintptr

type JfieldID

type JfieldID = uintptr

type JfloatArray

type JfloatArray = uintptr

type JintArray

type JintArray = uintptr

type JlongArray

type JlongArray = uintptr

type JmethodID

type JmethodID = uintptr

type Jobject

type Jobject = uintptr

type JobjectArray

type JobjectArray = uintptr

type JshortArray

type JshortArray = uintptr

type Jstring

type Jstring = uintptr

func ExceptionMessageFromThrowable

func ExceptionMessageFromThrowable(JNIEnv Env, jthrowable Jthrowable) Jstring

type Jthrowable

type Jthrowable = uintptr

type Jvalue

type Jvalue = uint64

func BooleanValue

func BooleanValue(b bool) Jvalue

func DoubleValue

func DoubleValue(f float64) Jvalue

func FloatValue

func FloatValue(f float32) Jvalue

func Int16Value

func Int16Value(i int16) Jvalue

func Int32Value

func Int32Value(i int32) Jvalue

func Int8Value

func Int8Value(i int8) Jvalue

func IntValue

func IntValue(i int) Jvalue

func StringValue

func StringValue(env Env, s string) Jvalue

############# jvalue #########################

type Jweak

type Jweak = uintptr

type RefType

type RefType int
const (
	Invalid RefType = iota
	Local
	Global
	WeakGlobal
)

type VM

type VM uintptr

func (VM) AttachCurrentThread

func (vm VM) AttachCurrentThread() (Env, int)

func (VM) AttachCurrentThreadAsDaemon

func (vm VM) AttachCurrentThreadAsDaemon() (Env, int)

func (VM) DestroyJavaVM

func (vm VM) DestroyJavaVM() int

func (VM) DetachCurrentThread

func (vm VM) DetachCurrentThread() int

func (VM) GetEnv

func (vm VM) GetEnv(version int) (Env, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL