Lines Matching refs:toCopy
346 int toCopy = (int) Math.min(byteCount - offset, head.limit - head.pos);
347 System.arraycopy(head.data, head.pos, result, offset, toCopy);
349 offset += toCopy;
350 head.pos += toCopy;
367 int toCopy = Math.min(byteCount, s.limit - s.pos);
368 System.arraycopy(s.data, s.pos, sink, offset, toCopy);
370 s.pos += toCopy;
371 this.size -= toCopy;
378 return toCopy;
426 int toCopy = Math.min(limit - offset, Segment.SIZE - tail.limit);
427 System.arraycopy(source, offset, tail.data, tail.limit, toCopy);
429 offset += toCopy;
430 tail.limit += toCopy;