Lines Matching defs:stream
37 // Current offset into the stream. Always >= 0.
45 // NULL stream.
53 // Buffer up to size bytes from the stream, and copy to dst if non-
58 // Read up to size bytes directly from the stream and into dst if non-
66 SkStreamRewindable* SkFrontBufferedStream::Create(SkStream* stream, size_t bufferSize) {
67 if (NULL == stream) {
70 return SkNEW_ARGS(FrontBufferedStream, (stream, bufferSize));
73 FrontBufferedStream::FrontBufferedStream(SkStream* stream, size_t bufferSize)
74 : fStream(SkRef(stream))
75 , fHasLength(stream->hasPosition() && stream->hasLength())
76 , fLength(stream->getLength() - stream->getPosition())
84 // Even if the underlying stream is at the end, this stream has been