Kotlin Native Jni Stub
This commit is contained in:
1 parent
62f126b5d9
commit
5650ee580f
4 files changed
+27
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package moe.tarsin.ehviewer
|
||||
|
||||
import kotlinx.cinterop.CPointer
|
||||
import kotlinx.cinterop.invoke
|
||||
import kotlinx.cinterop.pointed
|
||||
import platform.android.JNIEnvVar
|
||||
import platform.android.jclass
|
||||
import platform.android.jobject
|
||||
|
||||
@CName("Java_com_hippo_Native_rewriteGif")
|
||||
fun rewriteGif(env: CPointer<JNIEnvVar>, thiz: jclass, buffer: jobject) {
|
||||
val ptr = env.pointed.pointed!!.GetDirectBufferAddress!!.invoke(env, buffer)
|
||||
}
|
||||
Reference in new issue
Block a user