Searched refs:bytesFromCurrent (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/core/ |
D | SkStream.cpp | 756 size_t bytesFromCurrent = SkTMin(bytesLeftToRead, bytesLeftInCurrent); in read() local 758 memcpy(buffer, fCurrent->start() + fCurrentOffset, bytesFromCurrent); in read() 759 buffer = SkTAddOffset<void>(buffer, bytesFromCurrent); in read() 761 if (bytesLeftToRead <= bytesFromCurrent) { in read() 762 fCurrentOffset += bytesFromCurrent; in read() 766 bytesLeftToRead -= bytesFromCurrent; in read() 789 size_t bytesFromCurrent = SkTMin(current->written() - currentOffset, bytesLeftToPeek); in peek() local 790 memcpy(buffer, current->start() + currentOffset, bytesFromCurrent); in peek() 791 bytesLeftToPeek -= bytesFromCurrent; in peek() 792 buffer += bytesFromCurrent; in peek()
|
/external/skqp/src/core/ |
D | SkStream.cpp | 756 size_t bytesFromCurrent = SkTMin(bytesLeftToRead, bytesLeftInCurrent); in read() local 758 memcpy(buffer, fCurrent->start() + fCurrentOffset, bytesFromCurrent); in read() 759 buffer = SkTAddOffset<void>(buffer, bytesFromCurrent); in read() 761 if (bytesLeftToRead <= bytesFromCurrent) { in read() 762 fCurrentOffset += bytesFromCurrent; in read() 766 bytesLeftToRead -= bytesFromCurrent; in read() 789 size_t bytesFromCurrent = SkTMin(current->written() - currentOffset, bytesLeftToPeek); in peek() local 790 memcpy(buffer, current->start() + currentOffset, bytesFromCurrent); in peek() 791 bytesLeftToPeek -= bytesFromCurrent; in peek() 792 buffer += bytesFromCurrent; in peek()
|