Lines Matching full:stream
12 // layout A1 A2 B1 B2 by writing 'A's to one stream and 'B's to another.
31 // Maximum number of streams in a stream set.
35 // operations. The stream does not own the memory.
42 // the last use of the stream.
51 // the last use of the stream.
56 // the last use of the stream.
64 // Returns number of bytes remaining to be read from stream.
67 // Returns initial length of stream before any data consumed by reading.
73 // Copies bytes from stream to memory at |destination|. Returns 'false' if
77 // Reads a varint formatted unsigned integer from stream. Returns 'false' if
81 // Reads a varint formatted signed integer from stream. Returns 'false' if
85 // Initializes |substream| to yield |length| bytes from |this| stream,
87 // there are insufficient bytes in |this| stream.
90 // Initializes |substream| to yield |length| bytes from |this| stream,
92 // insufficient bytes in |this| stream.
97 // Reads |length| bytes from |this| stream. Initializes |substream| to yield
99 // stream.
113 // A SinkStream accumulates writes into a buffer that it owns. The stream is
115 // the buffer moves the stream into a 'locked' state where no more writes are
116 // permitted. The stream may also be in a 'retired' state where the buffer
123 // Appends |byte_count| bytes from |data| to the stream.
126 // Appends the 'varint32' encoding of |value| to the stream.
129 // Appends the 'varint32' encoding of |value| to the stream.
132 // Appends the 'varint32' encoding of |value| to the stream.
136 // Contents of |other| are appended to |this| stream. The |other| stream
143 // Returns a pointer to contiguously allocated Length() bytes in the stream.
144 // Writing to the stream invalidates the pointer. The SinkStream continues to
150 // Hints that the stream will grow by an additional |length| bytes.
156 // Finished with this stream and any storage it has.
171 // Initializes the SourceStreamSet with the stream data in memory at |source|.
184 SourceStream* stream(size_t id) { return id < count_ ? &streams_[id] : NULL; }
201 // transferred, either by flattening into one stream (CopyTo), or transfering
214 SinkStream* stream(size_t id) { return id < count_ ? &streams_[id] : NULL; }
217 // stream. The serialized format may be re-read by initializing a
222 // Stream zero first has some metadata written to it. |set| becomes retired.
227 CheckBool CopyHeaderTo(SinkStream* stream) WARN_UNUSED_RESULT;