Lines Matching refs:copyfirst
155 size_t copyfirst = (mCapacity - mWriteHead); in write() local
156 if (copyfirst > num) copyfirst = num; in write()
157 if (copyfirst) { in write()
158 memcpy(mCutBuffer + mWriteHead, src, copyfirst); in write()
159 num -= copyfirst; in write()
160 src += copyfirst; in write()
161 mWriteHead += copyfirst; in write()
183 size_t copyfirst = (mCapacity - mReadHead); in read() local
184 if (copyfirst > num) copyfirst = num; in read()
185 if (copyfirst) { in read()
186 memcpy(dst, mCutBuffer + mReadHead, copyfirst); in read()
187 num -= copyfirst; in read()
188 dst += copyfirst; in read()
189 mReadHead += copyfirst; in read()