Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: android/jni_array.cc

Issue 2045303002: Update to Chromium //base at Chromium commit 3e81715e6d3a4324362635aea46ce1f1a163cca1. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android/jni_array.h ('k') | android/jni_array_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android/jni_array.cc
diff --git a/android/jni_array.cc b/android/jni_array.cc
index 1bbc66997bdea1f9b7e52022287b08b90c3fec57..bc922f883c2f8c296fbbfdd4a2590afc2fb11bc9 100644
--- a/android/jni_array.cc
+++ b/android/jni_array.cc
@@ -185,6 +185,16 @@ void JavaIntArrayToIntVector(JNIEnv* env,
env->GetIntArrayRegion(int_array, 0, len, &(*out)[0]);
}
+void JavaLongArrayToInt64Vector(JNIEnv* env,
+ jlongArray long_array,
+ std::vector<int64>* out) {
+ DCHECK(out);
+ std::vector<jlong> temp;
+ JavaLongArrayToLongVector(env, long_array, &temp);
+ out->resize(0);
+ out->insert(out->begin(), temp.begin(), temp.end());
+}
+
void JavaLongArrayToLongVector(JNIEnv* env,
jlongArray long_array,
std::vector<jlong>* out) {
« no previous file with comments | « android/jni_array.h ('k') | android/jni_array_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698