Lines Matching refs:num
137 void SkipCutBuffer::write(const char *src, size_t num) { in write() argument
145 if (available < num) { in write()
146 int32_t newcapacity = mCapacity + (num - available); in write()
156 if (copyfirst > num) copyfirst = num; in write()
159 num -= copyfirst; in write()
164 if (num) { in write()
165 memcpy(mCutBuffer, src, num); in write()
166 mWriteHead += num; in write()
171 size_t SkipCutBuffer::read(char *dst, size_t num) { in read() argument
179 if (available < int32_t(num)) { in read()
180 num = available; in read()
184 if (copyfirst > num) copyfirst = num; in read()
187 num -= copyfirst; in read()
192 if (num) { in read()
193 memcpy(dst, mCutBuffer, num); in read()
194 mReadHead += num; in read()