Lines Matching refs:stream
135 bool SkWStream::writeStream(SkStream* stream, size_t length) {
144 stream->read(scratch, n);
650 // The contract is to write zeros until the entire stream has written a multiple of 4 bytes.
885 std::unique_ptr<SkStreamAsset> stream
890 return stream;
914 auto stream = std::make_unique<SkFILEStream>(path);
915 if (!stream->isValid()) {
918 return std::move(stream);
922 sk_sp<SkData> SkCopyStreamToData(SkStream* stream) {
923 SkASSERT(stream != nullptr);
925 if (stream->hasLength()) {
926 return SkData::MakeFromStream(stream, stream->getLength());
933 size_t bytesRead = stream->read(buffer, bufferSize);
935 } while (!stream->isAtEnd());