Lines Matching refs:SkStream
18 class SkStream;
25 * SkStream -- abstraction for a source of bytes. Subclasses can be backed by
41 class SK_API SkStream {
43 virtual ~SkStream() {}
44 SkStream() {}
114 std::unique_ptr<SkStream> duplicate() const {
115 return std::unique_ptr<SkStream>(this->onDuplicate());
120 std::unique_ptr<SkStream> fork() const {
121 return std::unique_ptr<SkStream>(this->onFork());
154 virtual SkStream* onDuplicate() const { return nullptr; }
155 virtual SkStream* onFork() const { return nullptr; }
157 SkStream(SkStream&&) = delete;
158 SkStream(const SkStream&) = delete;
159 SkStream& operator=(SkStream&&) = delete;
160 SkStream& operator=(const SkStream&) = delete;
163 /** SkStreamRewindable is a SkStream for which rewind and duplicate are required. */
164 class SK_API SkStreamRewindable : public SkStream {
272 bool writeStream(SkStream* input, size_t length);