Searched refs:mWritePos (Results 1 – 3 of 3) sorted by relevance
29 mWritePos(0) { in RingBuffer()40 size_t numAvailableToRead = mWritePos - mReadPos; in write()47 size_t writePos = (mWritePos % mSize); in write()60 mWritePos += size; in write()74 numAvailableToRead = mWritePos - mReadPos; in read()106 mWritePos(0), mCounter(1) { in LockfreeBuffer()121 memcpy(&mData[mWritePos], ev, offsetof(sensors_event_t, reserved0)); in write()123 memcpy(reinterpret_cast<char *>(&mData[mWritePos]) + offsetof(sensors_event_t, timestamp), in write()128 mData[mWritePos].reserved0 = mCounter++; in write()133 if (++mWritePos >= mSize) { in write()[all …]
41 size_t mReadPos, mWritePos; member55 size_t mWritePos; member
89 return mWritePos; in oustandingWriteBuffer()93 return mWriteBuffer.size() - mWritePos; in remainingWriteBufferSize()103 mWriteBuffer.resize((mWritePos + size) << 1); in bufferedWrite()105 memcpy(mWriteBuffer.data() + mWritePos, buffer, size); in bufferedWrite()106 mWritePos += size; in bufferedWrite()112 size_t mWritePos = 0; member in goldfish_vk::VulkanStreamGuest::Impl