Searched refs:tocopy (Results 1 – 2 of 2) sorted by relevance
332 size_t tocopy = min(size, b->mSize - b->mOffset); in read() local335 memcpy(buffer, (char *)b->mData + b->mOffset, tocopy); in read()336 buffer = (char *)buffer + tocopy; in read()337 size -= tocopy; in read()338 b->mOffset += tocopy; in read()405 size_t tocopy = min(mReadBlob->mSize - mReadBlob->mOffset, b->mSize - b->mOffset); in bufferQueueCallback() local407 (char *)b->mData + b->mOffset, tocopy); in bufferQueueCallback()408 b->mOffset += tocopy; in bufferQueueCallback()409 mReadBlob->mOffset += tocopy; in bufferQueueCallback()
543 final int tocopy = Math.min(size, bb.remaining()); in readAt() local544 if (tocopy == 0) { in readAt()547 bb.get(buffer, offset, tocopy); in readAt()548 copied += tocopy; in readAt()549 size -= tocopy; in readAt()550 offset += tocopy; in readAt()551 position += tocopy; in readAt()