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

Function _set_self

java/cpp/lac_jni.cpp:26–30  ·  view source on GitHub ↗

设置self_ptr地址,指向创建的LAC对象

Source from the content-addressed store, hash-verified

24
25 // 设置self_ptr地址,指向创建的LAC对象
26 static void _set_self(JNIEnv *env, jobject thisObj, LAC *self)
27 {
28 jlong selfPtr = *(jlong *)&self;
29 env->SetLongField(thisObj, _get_self_id(env, thisObj), selfPtr);
30 }
31
32 // 返回LAC对象的指针
33 static LAC *_get_self(JNIEnv *env, jobject thisObj)

Callers 2

Calls 1

_get_self_idFunction · 0.85

Tested by

no test coverage detected