Lines Matching refs:copy
51 size_t copy = mSize - writePos; in write() local
53 if (copy > size) { in write()
54 copy = size; in write()
57 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
59 if (size > copy) { in write()
60 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
90 size_t copy = mSize - readPos; in read() local
92 if (copy > size) { in read()
93 copy = size; in read()
96 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
98 if (size > copy) { in read()
99 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()