summaryrefslogtreecommitdiffstats
path: root/base/android/jni_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/android/jni_array.h')
-rw-r--r--base/android/jni_array.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/android/jni_array.h b/base/android/jni_array.h
index bb73ea0..668a1ed 100644
--- a/base/android/jni_array.h
+++ b/base/android/jni_array.h
@@ -66,6 +66,12 @@ BASE_EXPORT void JavaIntArrayToIntVector(
jintArray int_array,
std::vector<int>* out);
+// Replaces the content of |out| with the Java floats in |float_array|.
+BASE_EXPORT void JavaFloatArrayToFloatVector(
+ JNIEnv* env,
+ jfloatArray float_array,
+ std::vector<float>* out);
+
// Assuming |array| is an byte[][] (array of byte arrays), replaces the
// content of |out| with the corresponding vector of strings. No UTF-8
// conversion is performed.