Searched refs:bytesFromCurrent (Results 1 – 1 of 1) sorted by relevance
656 size_t bytesFromCurrent = SkTMin(bytesLeftToRead, bytesLeftInCurrent); in read() local658 memcpy(buffer, fCurrent->start() + fCurrentOffset, bytesFromCurrent); in read()659 buffer = SkTAddOffset<void>(buffer, bytesFromCurrent); in read()661 if (bytesLeftToRead <= bytesFromCurrent) { in read()662 fCurrentOffset += bytesFromCurrent; in read()666 bytesLeftToRead -= bytesFromCurrent; in read()689 size_t bytesFromCurrent = SkTMin(current->written() - currentOffset, bytesLeftToPeek); in peek() local690 memcpy(buffer, current->start() + currentOffset, bytesFromCurrent); in peek()691 bytesLeftToPeek -= bytesFromCurrent; in peek()692 buffer += bytesFromCurrent; in peek()