Home
last modified time | relevance | path

Searched refs:mWritePos (Results 1 – 5 of 5) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DRingBuffer.cpp28 mWritePos(0) { in RingBuffer()
39 size_t numAvailableToRead = mWritePos - mReadPos; in write()
46 size_t writePos = (mWritePos % mSize); in write()
59 mWritePos += size; in write()
73 numAvailableToRead = mWritePos - mReadPos; in read()
DRingBuffer.h42 size_t mReadPos, mWritePos; variable
/hardware/google/gfxstream/host/vulkan/
DVulkanStream.cpp142 size_t VulkanStream::remainingWriteBufferSize() const { return mWriteBuffer.size() - mWritePos; } in remainingWriteBufferSize()
146 mWriteBuffer.resize((mWritePos + size) << 1); in bufferedWrite()
148 memcpy(mWriteBuffer.data() + mWritePos, buffer, size); in bufferedWrite()
149 mWritePos += size; in bufferedWrite()
161 int written = mStream->writeFully(mWriteBuffer.data(), mWritePos); in commitWrite()
165 << "Did not write exactly " << mWritePos << " bytes!"; in commitWrite()
167 mWritePos = 0; in commitWrite()
DVulkanStream.h85 size_t mWritePos = 0; variable
/hardware/google/aemu/base/include/aemu/base/files/
DInplaceStream.h63 int mWritePos = 0; variable