Lines Matching refs:mData
27 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer()
33 free(mData); in ~RingBuffer()
34 mData = NULL; in ~RingBuffer()
54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
105 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer()
107 memset(mData, 0, size); in LockfreeBuffer()
111 memset(mData, 0, mSize*sizeof(sensors_event_t)); 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()