Lines Matching refs:stream

47      *  Attempts to open the specified file as a stream, returns nullptr on failure.
69 * If this stream supports peeking, copy min(size, peekable bytes) into
71 * If the stream does not support peeking, or cannot peek any bytes,
73 * The stream is guaranteed to be in the same visible state after this
82 /** Returns true when all the bytes in the stream have been read.
106 /** Rewinds to the beginning of the stream. Returns true if the stream is known
111 /** Duplicates this stream. If this cannot be done, returns NULL.
112 * The returned stream will be positioned at the beginning of its data.
117 /** Duplicates this stream. If this cannot be done, returns NULL.
118 * The returned stream will be positioned the same as this stream.
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.
131 * If an attempt is made to seek past the end of the stream, the position will be set
132 * to the end of the stream.
136 /** Seeks to an relative offset in the stream. If this cannot be done, returns false.
137 * If an attempt is made to move to a position outside the stream, the position will be set
138 * to the closest point within the stream (beginning or end).
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. */
233 @param buffer the address of at least size bytes to be written to the stream
234 @param size The number of bytes in buffer to write to the stream
275 * This returns the number of bytes in the stream required to store
301 /** A stream that wraps a C FILE* file stream. */
304 /** Initialize the stream by calling sk_fopen on the specified path.
305 * This internal stream will be closed in the destructor.
309 /** Initialize the stream with an existing C FILE stream.
310 * The current position of the C FILE stream will be considered the
312 * The C FILE stream will be closed in the destructor.
316 /** Initialize the stream with an existing C FILE stream.
317 * The current position of the C FILE stream will be considered the
319 * The C FILE stream will be closed in the destructor.
326 std::unique_ptr<SkFILEStream> stream(new SkFILEStream(path));
327 return stream->isValid() ? std::move(stream) : nullptr;
364 // These are seek positions in the underling FILE, not offsets into the stream.
379 /** If copyData is true, the stream makes a private copy of the data. */
382 /** Creates the stream to read from the specified data */
385 /** Returns a stream with a copy of the input data. */
388 /** Returns a stream with a bare pointer reference to the input data. */
391 /** Returns a stream with a shared reference to the input data. */
394 /** Resets the stream to the specified data and length,
396 if copyData is true, the stream makes a private copy of the data
493 /** Prepend this stream to dst, resetting this. */
496 /** Return the contents as SkData, and then reset the stream. */
499 /** Reset, returning a reader stream with the current content. */
502 /** Reset the stream to its original, empty, state. */