Lines Matching refs:this

4  * Use of this source code is governed by a BSD-style license that can be
64 return this->read(nullptr, size);
69 * If this stream supports peeking, copy min(size, peekable bytes) into
73 * The stream is guaranteed to be in the same visible state after this
92 bool SK_WARN_UNUSED_RESULT readU8(uint8_t* i) { return this->readS8((int8_t*)i); }
93 bool SK_WARN_UNUSED_RESULT readU16(uint16_t* i) { return this->readS16((int16_t*)i); }
94 bool SK_WARN_UNUSED_RESULT readU32(uint32_t* i) { return this->readS32((int32_t*)i); }
98 if (!this->readU8(&i)) { return false; }
107 * to be at the beginning after this call returns.
111 /** Duplicates this stream. If this cannot be done, returns NULL.
115 return std::unique_ptr<SkStream>(this->onDuplicate());
117 /** Duplicates this stream. If this cannot be done, returns NULL.
118 * The returned stream will be positioned the same as this stream.
121 return std::unique_ptr<SkStream>(this->onFork());
125 /** Returns true if this stream can report it's current position. */
127 /** Returns the current position in the stream. If this cannot be done, returns 0. */
130 /** Seeks to an absolute position in the stream. If this cannot be done, returns false.
136 /** Seeks to an relative offset in the stream. If this cannot be done, returns false.
143 /** Returns true if this stream can report it's total length. */
145 /** Returns the total length of the stream. If this cannot be done, returns 0. */
149 /** Returns the starting address for the data. If this cannot be done, returns NULL. */
168 return std::unique_ptr<SkStreamRewindable>(this->onDuplicate());
178 return std::unique_ptr<SkStreamSeekable>(this->onDuplicate());
187 return std::unique_ptr<SkStreamSeekable>(this->onFork());
201 return std::unique_ptr<SkStreamAsset>(this->onDuplicate());
204 return std::unique_ptr<SkStreamAsset>(this->onFork());
217 return std::unique_ptr<SkStreamMemory>(this->onDuplicate());
220 return std::unique_ptr<SkStreamMemory>(this->onFork());
246 return this->write(&v, 1);
250 return this->write(&v, 2);
253 return this->write(&v, 4);
258 return this->write(text, strlen(text));
261 bool newline() { return this->write("\n", strlen("\n")); }
268 bool writeBool(bool v) { return this->write8(v); }
333 /** Close this SkFILEStream. */
341 return std::unique_ptr<SkStreamAsset>(this->onDuplicate());
349 return std::unique_ptr<SkStreamAsset>(this->onFork());
420 return std::unique_ptr<SkMemoryStream>(this->onDuplicate());
428 return std::unique_ptr<SkMemoryStream>(this->onFork());
493 /** Prepend this stream to dst, resetting this. */