Skip to content

Commit 3a0acf1

Browse files
SessionHero01SessionHero01
authored andcommitted
Updated
1 parent 58d862c commit 3a0acf1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

library/src/main/cpp/jni_utils.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,14 @@ namespace jni_utils {
141141
return env->NewObject(bytes_clazz.get(), init, bytes_array.get());
142142
}
143143

144+
/**
145+
* Create a Kotlin Pair object
146+
*/
144147
jobject new_kotlin_pair(JNIEnv *env, jobject first, jobject second);
145148

149+
/**
150+
* A RAII wrapper for a Java byte array. This will automatically release the byte array when it goes out of scope.
151+
*/
146152
class JavaByteArrayRef {
147153
JNIEnv *env;
148154
jbyteArray byte_array;

0 commit comments

Comments
 (0)