⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jni.h

📁 This is a resource based on j2me embedded,if you dont understand,you can connection with me .
💻 H
📖 第 1 页 / 共 5 页
字号:
      (JNIEnv *env, jlongArray array, jsize start, jsize len, const jlong *buf);    void (JNICALL *SetFloatArrayRegion)      (JNIEnv *env, jfloatArray array, jsize start, jsize len,       const jfloat *buf);    void (JNICALL *SetDoubleArrayRegion)      (JNIEnv *env, jdoubleArray array, jsize start, jsize len,       const jdouble *buf);    jint (JNICALL *RegisterNatives)      (JNIEnv *env, jclass clazz, const JNINativeMethod *methods,       jint nMethods);    jint (JNICALL *UnregisterNatives)      (JNIEnv *env, jclass clazz);    jint (JNICALL *MonitorEnter)      (JNIEnv *env, jobject obj);    jint (JNICALL *MonitorExit)      (JNIEnv *env, jobject obj);    jint (JNICALL *GetJavaVM)      (JNIEnv *env, JavaVM **vm);    void (JNICALL *GetStringRegion)      (JNIEnv *env, jstring str, jsize start, jsize len, jchar *buf);    void (JNICALL *GetStringUTFRegion)      (JNIEnv *env, jstring str, jsize start, jsize len, char *buf);    void * (JNICALL *GetPrimitiveArrayCritical)      (JNIEnv *env, jarray array, jboolean *isCopy);    void (JNICALL *ReleasePrimitiveArrayCritical)      (JNIEnv *env, jarray array, void *carray, jint mode);    const jchar * (JNICALL *GetStringCritical)      (JNIEnv *env, jstring string, jboolean *isCopy);    void (JNICALL *ReleaseStringCritical)      (JNIEnv *env, jstring string, const jchar *cstring);    jweak (JNICALL *NewWeakGlobalRef)       (JNIEnv *env, jobject obj);    void (JNICALL *DeleteWeakGlobalRef)       (JNIEnv *env, jweak ref);    jboolean (JNICALL *ExceptionCheck)       (JNIEnv *env);    jobject (JNICALL *NewDirectByteBuffer)       (JNIEnv* env, void* address, jlong capacity);    void* (JNICALL *GetDirectBufferAddress)       (JNIEnv* env, jobject buf);    jlong (JNICALL *GetDirectBufferCapacity)       (JNIEnv* env, jobject buf);};/* * We use inlined functions for C++ so that programmers can write: * *    env->FindClass("java/lang/String") * * in C++ rather than: * *    (*env)->FindClass(env, "java/lang/String") * * in C. */#if defined(__cplusplus) && !defined(CVM_JNI_C_INTERFACE)struct JNIEnv_ {    const struct JNINativeInterface *functions;    jint GetVersion() {        return functions->GetVersion(this);    }    jclass DefineClass(const char *name, jobject loader, const jbyte *buf,		       jsize len) {        return functions->DefineClass(this, name, loader, buf, len);    }    jclass FindClass(const char *name) {        return functions->FindClass(this, name);    }    jmethodID FromReflectedMethod(jobject method) {        return functions->FromReflectedMethod(this,method);    }    jfieldID FromReflectedField(jobject field) {        return functions->FromReflectedField(this,field);    }    jobject ToReflectedMethod(jclass cls, jmethodID methodID, jboolean isStatic) {        return functions->ToReflectedMethod(this, cls, methodID, isStatic);    }    jclass GetSuperclass(jclass sub) {        return functions->GetSuperclass(this, sub);    }    jboolean IsAssignableFrom(jclass sub, jclass sup) {        return functions->IsAssignableFrom(this, sub, sup);    }    jobject ToReflectedField(jclass cls, jfieldID fieldID, jboolean isStatic) {        return functions->ToReflectedField(this,cls,fieldID,isStatic);    }    jint Throw(jthrowable obj) {        return functions->Throw(this, obj);    }    jint ThrowNew(jclass clazz, const char *msg) {        return functions->ThrowNew(this, clazz, msg);    }    jthrowable ExceptionOccurred() {        return functions->ExceptionOccurred(this);    }    void ExceptionDescribe() {        functions->ExceptionDescribe(this);    }    void ExceptionClear() {        functions->ExceptionClear(this);    }    void FatalError(const char *msg) {        functions->FatalError(this, msg);    }    jint PushLocalFrame(jint capacity) {        return functions->PushLocalFrame(this,capacity);    }    jobject PopLocalFrame(jobject result) {        return functions->PopLocalFrame(this,result);    }    jobject NewGlobalRef(jobject lobj) {        return functions->NewGlobalRef(this,lobj);    }    void DeleteGlobalRef(jobject gref) {        functions->DeleteGlobalRef(this,gref);    }    void DeleteLocalRef(jobject obj) {        functions->DeleteLocalRef(this, obj);    }    jboolean IsSameObject(jobject obj1, jobject obj2) {        return functions->IsSameObject(this,obj1,obj2);    }    jobject NewLocalRef(jobject ref) {        return functions->NewLocalRef(this,ref);    }    jint EnsureLocalCapacity(jint capacity) {        return functions->EnsureLocalCapacity(this,capacity);    }    jobject AllocObject(jclass clazz) {        return functions->AllocObject(this,clazz);    }    jobject NewObject(jclass clazz, jmethodID methodID, ...) {        va_list args;	jobject result;	va_start(args, methodID);        result = functions->NewObjectV(this,clazz,methodID,args);	va_end(args);	return result;    }    jobject NewObjectV(jclass clazz, jmethodID methodID,		       va_list args) {        return functions->NewObjectV(this,clazz,methodID,args);    }    jobject NewObjectA(jclass clazz, jmethodID methodID,		       const jvalue *args) {        return functions->NewObjectA(this,clazz,methodID,args);    }    jclass GetObjectClass(jobject obj) {        return functions->GetObjectClass(this,obj);    }    jboolean IsInstanceOf(jobject obj, jclass clazz) {        return functions->IsInstanceOf(this,obj,clazz);    }    jmethodID GetMethodID(jclass clazz, const char *name,			  const char *sig) {        return functions->GetMethodID(this,clazz,name,sig);    }    jobject CallObjectMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jobject result;	va_start(args,methodID);	result = functions->CallObjectMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jobject CallObjectMethodV(jobject obj, jmethodID methodID,			va_list args) {        return functions->CallObjectMethodV(this,obj,methodID,args);    }    jobject CallObjectMethodA(jobject obj, jmethodID methodID,			      const jvalue * args) {        return functions->CallObjectMethodA(this,obj,methodID,args);    }    jboolean CallBooleanMethod(jobject obj,			       jmethodID methodID, ...) {        va_list args;	jboolean result;	va_start(args,methodID);	result = functions->CallBooleanMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jboolean CallBooleanMethodV(jobject obj, jmethodID methodID,				va_list args) {        return functions->CallBooleanMethodV(this,obj,methodID,args);    }    jboolean CallBooleanMethodA(jobject obj, jmethodID methodID,				const jvalue * args) {        return functions->CallBooleanMethodA(this,obj,methodID, args);    }    jbyte CallByteMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jbyte result;	va_start(args,methodID);	result = functions->CallByteMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jbyte CallByteMethodV(jobject obj, jmethodID methodID,			  va_list args) {        return functions->CallByteMethodV(this,obj,methodID,args);    }    jbyte CallByteMethodA(jobject obj, jmethodID methodID,			  const jvalue * args) {        return functions->CallByteMethodA(this,obj,methodID,args);    }    jchar CallCharMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jchar result;	va_start(args,methodID);	result = functions->CallCharMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jchar CallCharMethodV(jobject obj, jmethodID methodID,			  va_list args) {        return functions->CallCharMethodV(this,obj,methodID,args);    }    jchar CallCharMethodA(jobject obj, jmethodID methodID,			  const jvalue * args) {        return functions->CallCharMethodA(this,obj,methodID,args);    }    jshort CallShortMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jshort result;	va_start(args,methodID);	result = functions->CallShortMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jshort CallShortMethodV(jobject obj, jmethodID methodID,			    va_list args) {        return functions->CallShortMethodV(this,obj,methodID,args);    }    jshort CallShortMethodA(jobject obj, jmethodID methodID,			    const jvalue * args) {        return functions->CallShortMethodA(this,obj,methodID,args);    }    jint CallIntMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jint result;	va_start(args,methodID);	result = functions->CallIntMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jint CallIntMethodV(jobject obj, jmethodID methodID,			va_list args) {        return functions->CallIntMethodV(this,obj,methodID,args);    }    jint CallIntMethodA(jobject obj, jmethodID methodID,			const jvalue * args) {        return functions->CallIntMethodA(this,obj,methodID,args);    }    jlong CallLongMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jlong result;	va_start(args,methodID);	result = functions->CallLongMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jlong CallLongMethodV(jobject obj, jmethodID methodID,			  va_list args) {        return functions->CallLongMethodV(this,obj,methodID,args);    }    jlong CallLongMethodA(jobject obj, jmethodID methodID,			  const jvalue * args) {        return functions->CallLongMethodA(this,obj,methodID,args);    }    jfloat CallFloatMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jfloat result;	va_start(args,methodID);	result = functions->CallFloatMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jfloat CallFloatMethodV(jobject obj, jmethodID methodID,			    va_list args) {        return functions->CallFloatMethodV(this,obj,methodID,args);    }    jfloat CallFloatMethodA(jobject obj, jmethodID methodID,			    const jvalue * args) {        return functions->CallFloatMethodA(this,obj,methodID,args);    }    jdouble CallDoubleMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	jdouble result;	va_start(args,methodID);	result = functions->CallDoubleMethodV(this,obj,methodID,args);	va_end(args);	return result;    }    jdouble CallDoubleMethodV(jobject obj, jmethodID methodID,			va_list args) {        return functions->CallDoubleMethodV(this,obj,methodID,args);    }    jdouble CallDoubleMethodA(jobject obj, jmethodID methodID,			      const jvalue * args) {        return functions->CallDoubleMethodA(this,obj,methodID,args);    }    void CallVoidMethod(jobject obj, jmethodID methodID, ...) {        va_list args;	va_start(args,methodID);	functions->CallVoidMethodV(this,obj,methodID,args);	va_end(args);    }    void CallVoidMethodV(jobject obj, jmethodID methodID,			 va_list args) {        functions->CallVoidMethodV(this,obj,methodID,args);    }    void CallVoidMethodA(jobject obj, jmethodID methodID,			 const jvalue * args) {        functions->CallVoidMethodA(this,obj,methodID,args);    }    jobject CallNonvirtualObjectMethod(jobject obj, jclass clazz,				       jmethodID methodID, ...) {        va_list args;	jobject result;	va_start(args,methodID);	result = functions->CallNonvirtualObjectMethodV(this,obj,clazz,							methodID,args);	va_end(args);	return result;    }    jobject CallNonvirtualObjectMethodV(jobject obj, jclass clazz,					jmethodID methodID, va_list args) {        return functions->CallNonvirtualObjectMethodV(this,obj,clazz,						      methodID,args);    }    jobject CallNonvirtualObjectMethodA(jobject obj, jclass clazz,					jmethodID methodID,					const jvalue * args) {        return functions->CallNonvirtualObjectMethodA(this,obj,clazz,						      methodID,args);    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -