Lines Matching refs:copy
48 size_t copy = mSize - writePos; in write() local
50 if (copy > size) { in write()
51 copy = size; in write()
54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
56 if (size > copy) { in write()
57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
87 size_t copy = mSize - readPos; in read() local
89 if (copy > size) { in read()
90 copy = size; in read()
93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
95 if (size > copy) { in read()
96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()