Home
last modified time | relevance | path

Searched refs:bytesFromCurrent (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/core/
DSkStream.cpp656 size_t bytesFromCurrent = SkTMin(bytesLeftToRead, bytesLeftInCurrent); in read() local
658 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() local
690 memcpy(buffer, current->start() + currentOffset, bytesFromCurrent); in peek()
691 bytesLeftToPeek -= bytesFromCurrent; in peek()
692 buffer += bytesFromCurrent; in peek()