summaryrefslogtreecommitdiff
path: root/libs/samba/src/main/cpp/jni.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/samba/src/main/cpp/jni.hpp')
-rw-r--r--libs/samba/src/main/cpp/jni.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/samba/src/main/cpp/jni.hpp b/libs/samba/src/main/cpp/jni.hpp
index 1729828..b9bdb69 100644
--- a/libs/samba/src/main/cpp/jni.hpp
+++ b/libs/samba/src/main/cpp/jni.hpp
@@ -2,6 +2,7 @@
#define CLEVERSYNC_JNI_HPP
#include <jni.h>
+#include <cstdint>
#include <string>
#include <vector>
@@ -186,6 +187,12 @@ std::string StringToUTF8(JNIEnv* env, const Ref<jstring>& str);
LocalRef<jstring> UTF8ToString(JNIEnv* env, const std::string& str);
+LocalRef<jstring> UTF8ToString(JNIEnv* env, const char* str);
+
+LocalRef<jbyteArray> VectorToByteArray(JNIEnv* env, const std::vector<uint8_t>& data);
+
+std::vector<uint8_t> ByteArrayToVector(JNIEnv* env, const Ref<jbyteArray>& data);
+
LocalRef<jobjectArray> CreateArray(JNIEnv* env, const Ref<jclass>& element_class, std::vector<LocalRef<jobject>> objects);
namespace internal {