Lines Matching refs:buffer_
75 element_type* buffer_; member in JArray
78 JArray(JNIEnv* env, array_type jarray) : env_(env), jarray_(jarray), buffer_(nullptr) { in JArray()
80 buffer_ = (env_->*JTypeTraits<T>::getArrayElements)(jarray, nullptr); in JArray()
83 JArray(JArray&& rhs) : env_(rhs.env_), jarray_(rhs.jarray_), buffer_(rhs.buffer_) { in JArray()
85 rhs.buffer_ = nullptr; in JArray()
94 buffer_ = rhs.buffer_; in operator =()
96 rhs.buffer_ = nullptr; in operator =()
101 operator bool() const { return buffer_ != nullptr; } in operator bool()
102 const jint& operator[](size_t offset) const { return buffer_[offset]; } in operator []()
103 element_type& operator[](size_t offset) { return buffer_[offset]; } in operator []()
105 element_type* begin() { return buffer_; } in begin()
106 element_type* end() { return buffer_ + size(); } in end()
107 const element_type* begin() const { return buffer_; } in begin()
108 const element_type* end() const { return buffer_ + size(); } in end()
113 if (buffer_ == nullptr) return; in ~JArray()
114 (env_->*JTypeTraits<T>::releaseArrayElements)(jarray_, buffer_, 0); in ~JArray()
119 if (buffer_ == nullptr) return; in ~JArray()
120 (env_->*JTypeTraits<jstring>::releaseArrayElements)(jarray_, buffer_); in ~JArray()