| 58 | std::string ConvertDescToString(tera::TableDescriptor* desc) { return "desc"; } |
| 59 | |
| 60 | void JByteArrayToString(JNIEnv* env, jbyteArray& jbarray, std::string* str) { |
| 61 | const char* str_ptr = reinterpret_cast<const char*>(env->GetByteArrayElements(jbarray, 0)); |
| 62 | size_t str_len = static_cast<size_t>(env->GetArrayLength(jbarray)); |
| 63 | str->assign(str_ptr, str_len); |
| 64 | } |
| 65 | |
| 66 | void StringToJByteArray(JNIEnv* env, const std::string& str, jbyteArray* jbarray) { |
| 67 | size_t str_len = str.size(); |
no test coverage detected