Lines Matching refs:mSize
26 : mSize(size), in RingBuffer()
27 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer()
41 size_t numAvailableToWrite = mSize - numAvailableToRead; in write()
47 size_t writePos = (mWritePos % mSize); in write()
48 size_t copy = mSize - writePos; in write()
86 size_t readPos = (mReadPos % mSize); in read()
87 size_t copy = mSize - readPos; in read()
105 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer()
111 memset(mData, 0, mSize*sizeof(sensors_event_t)); in ~LockfreeBuffer()
115 if (!mSize) { in write()
133 if (++mWritePos >= mSize) { in write()