Lines Matching refs:mPosition
19 , mPosition(0) in ByteBufferStream()
56 if (size > mLength - mPosition) { in read()
57 size = mLength - mPosition; in read()
64 return this->setPosition(mPosition + size) ? size : 0; in read()
77 mPosition = mLength; in read()
86 mPosition = mLength; in read()
90 mPosition += requested; in read()
98 bool isAtEnd() const override { return mLength == mPosition; } in isAtEnd()
112 size_t getPosition() const override { return mPosition; } in getPosition()
119 long newPosition = mPosition + offset; in move()
141 size_t mPosition; member in ByteBufferStream
157 mPosition = mLength; in setPosition()
160 mPosition = newPosition; in setPosition()
175 : mJvm(jvm), mByteArray(jarray), mOffset(offset), mPosition(0), mLength(length) {} in ByteArrayStream()
194 if (size > mLength - mPosition) { in read()
195 size = mLength - mPosition; in read()
203 env->GetByteArrayRegion(mByteArray, mPosition + mOffset, size, in read()
209 mPosition = mLength; in read()
214 mPosition += size; in read()
218 bool isAtEnd() const override { return mLength == mPosition; } in isAtEnd()
222 mPosition = 0; in rewind()
233 size_t getPosition() const override { return mPosition; } in getPosition()
236 mPosition = (position > mLength) ? mLength : position; in seek()
241 long newPosition = mPosition + offset; in move()
264 size_t mPosition; member in ByteArrayStream