Lines Matching refs:mPeekOffset
35 , mPeekOffset(0) { in Stream()
43 size_t peek_remaining = mPeekSize - mPeekOffset; in peek()
48 memcpy(mPeekBuffer, old_peek + mPeekOffset, peek_remaining); in peek()
51 size_t read = doRead(mPeekBuffer + mPeekOffset, size - peek_remaining); in peek()
52 mPeekOffset = 0; in peek()
55 size = min(size, mPeekSize - mPeekOffset); in peek()
56 memcpy(buffer, mPeekBuffer + mPeekOffset, size); in peek()
62 size_t peek_remaining = mPeekSize - mPeekOffset; in read()
65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read); in read()
66 mPeekOffset += bytes_read; in read()
67 if (mPeekOffset == mPeekSize) { in read()
70 mPeekOffset = 0; in read()