We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f698b87 commit f9767e6Copy full SHA for f9767e6
library/src/main/cpp/util.cpp
@@ -18,7 +18,7 @@ namespace util {
18
19
std::mutex util_mutex_ = std::mutex();
20
21
- jbyteArray bytes_from_vector(JNIEnv* env, std::vector<unsigned char> from_str) {
+ jbyteArray bytes_from_vector(JNIEnv* env, const std::vector<unsigned char> &from_str) {
22
size_t length = from_str.size();
23
auto jlength = (jsize)length;
24
jbyteArray new_array = env->NewByteArray(jlength);
0 commit comments