Home
last modified time | relevance | path

Searched refs:JTypeTraits (Results 1 – 1 of 1) sorted by relevance

/system/teeui/libteeui_jni/
Dlibteeui_jni.cpp28 template <typename T> struct JTypeTraits;
30 template <> struct JTypeTraits<jintArray> { struct
41 template <> struct JTypeTraits<jbyteArray> { argument
52 template <> struct JTypeTraits<jstring> { argument
72 using element_type = typename JTypeTraits<T>::element_type; argument
73 using array_type = typename JTypeTraits<T>::array_type;
80 buffer_ = (env_->*JTypeTraits<T>::getArrayElements)(jarray, nullptr); in JArray()
104 size_t size() const { return (env_->*JTypeTraits<T>::getArrayLength)(jarray_); } in size()
114 (env_->*JTypeTraits<T>::releaseArrayElements)(jarray_, buffer_, 0); in ~JArray()
120 (env_->*JTypeTraits<jstring>::releaseArrayElements)(jarray_, buffer_); in ~JArray()