MCPcopy Create free account
hub / github.com/baidu/lac / _get_self_id

Function _get_self_id

java/cpp/lac_jni.cpp:13–23  ·  view source on GitHub ↗

返回Java类别中的self_ptr地址,用于指向创建的LAC对象

Source from the content-addressed store, hash-verified

11
12 // 返回Java类别中的self_ptr地址,用于指向创建的LAC对象
13 static jfieldID _get_self_id(JNIEnv *env, jobject thisObj)
14 {
15 static int init = 0;
16 static jfieldID fidSelfPtr;
17 if (!init)
18 {
19 jclass thisClass = env->GetObjectClass(thisObj);
20 fidSelfPtr = env->GetFieldID(thisClass, "self_ptr", "J");
21 }
22 return fidSelfPtr;
23 }
24
25 // 设置self_ptr地址,指向创建的LAC对象
26 static void _set_self(JNIEnv *env, jobject thisObj, LAC *self)

Callers 2

_set_selfFunction · 0.85
_get_selfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected