Home | History | Annotate | Download | only in utils

Lines Matching refs:dst

47     // dst, if non-nullptr. Updates fOffset. Assumes that fOffset is less
49 size_t readFromBuffer(char* dst, size_t size);
51 // Buffer up to size bytes from the stream, and copy to dst if non-
54 size_t bufferAndWriteTo(char* dst, size_t size);
56 // Read up to size bytes directly from the stream and into dst if non-
59 size_t readDirectlyFromStream(char* dst, size_t size);
101 size_t FrontBufferedStream::readFromBuffer(char* dst, size_t size) {
107 if (dst != nullptr) {
108 memcpy(dst, fBuffer + fOffset, bytesToCopy);
119 size_t FrontBufferedStream::bufferAndWriteTo(char* dst, size_t size) {
134 if (dst != nullptr) {
135 memcpy(dst, buffer, buffered);
141 size_t FrontBufferedStream::readDirectlyFromStream(char* dst, size_t size) {
146 const size_t bytesReadDirectly = fStream->read(dst, size);
158 size_t FrontBufferedStream::peek(void* dst, size_t size) const {
169 const size_t bytesRead = nonConstThis->read(dst, size);
176 char* dst = reinterpret_cast<char*>(voidDst);
182 const size_t bytesCopied = this->readFromBuffer(dst, size);
188 if (dst != nullptr) {
189 dst += bytesCopied;
196 const size_t buffered = this->bufferAndWriteTo(dst, size);
202 if (dst != nullptr) {
203 dst += buffered;
208 SkDEBUGCODE(const size_t bytesReadDirectly =) this->readDirectlyFromStream(dst, size);