Searched refs:mTail (Results 1 – 3 of 3) sorted by relevance
41 private int mTail; field in ProcFileReader64 final int length = mBuffer.length - mTail; in fillBuf()69 final int read = mStream.read(mBuffer, mTail, length); in fillBuf()71 mTail += read; in fillBuf()85 while (count < mTail && mBuffer[count] == ' ') { in consumeBuf()88 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count); in consumeBuf()89 mTail -= count; in consumeBuf()90 if (mTail == 0) { in consumeBuf()93 if (mTail > 0 && mBuffer[0] == ' ') { in consumeBuf()116 for (; i < mTail; i++) { in nextTokenIndex()[all …]
44 constexpr bool hasWork() const { return mHead != mTail; } in hasWork()45 constexpr bool hasSpace() const { return ((mHead + 1) % SIZE) != mTail; } in hasSpace()47 if (mHead > mTail) { in size()48 return mHead - mTail; in size()50 return mTail - mHead + SIZE; in size()56 LOG_ALWAYS_FATAL_IF(newHead == mTail, "no space"); in push()63 LOG_ALWAYS_FATAL_IF(mTail == mHead, "empty"); in pop()64 int index = mTail; in pop()65 mTail = (mTail + 1) % SIZE; in pop()74 int mTail = 0; variable
37 private int mTail; field in LongArrayQueue51 mHead = mTail = 0; in LongArrayQueue()72 mTail = mSize; in grow()87 mHead = mTail = 0; in clear()99 mValues[mTail] = value; in addLast()100 mTail = (mTail + 1) % mValues.length; in addLast()161 final int index = (mTail == 0) ? mValues.length - 1 : mTail - 1; in peekLast()