Home | History | Annotate | Download | only in utils

Lines Matching defs:dst

49     // dst, if non-NULL. Updates fOffset. Assumes that fOffset is less
51 size_t readFromBuffer(char* dst, size_t size);
53 // Buffer up to size bytes from the stream, and copy to dst if non-
56 size_t bufferAndWriteTo(char* dst, size_t size);
58 // Read up to size bytes directly from the stream and into dst if non-
61 size_t readDirectlyFromStream(char* dst, size_t size);
101 size_t FrontBufferedStream::readFromBuffer(char* dst, size_t size) {
107 if (dst != NULL) {
108 memcpy(dst, fBuffer + fOffset, bytesToCopy);
119 size_t FrontBufferedStream::bufferAndWriteTo(char* dst, size_t size) {
133 if (dst != NULL) {
134 memcpy(dst, buffer, buffered);
140 size_t FrontBufferedStream::readDirectlyFromStream(char* dst, size_t size) {
145 const size_t bytesReadDirectly = fStream->read(dst, size);
159 char* dst = reinterpret_cast<char*>(voidDst);
165 const size_t bytesCopied = this->readFromBuffer(dst, size);
171 if (dst != NULL) {
172 dst += bytesCopied;
179 const size_t buffered = this->bufferAndWriteTo(dst, size);
185 if (dst != NULL) {
186 dst += buffered;
191 SkDEBUGCODE(const size_t bytesReadDirectly =) this->readDirectlyFromStream(dst, size);