Home | History | Annotate | Download | only in Support

Lines Matching defs:Stream

1 //===- BinaryStreamReader.h - Reads objects from a binary stream *- C++ -*-===//
36 explicit BinaryStreamReader(BinaryStream &Stream);
42 : Stream(Other.Stream), Offset(Other.Offset) {}
45 Stream = Other.Stream;
54 /// Updates the stream's offset to point after the newly read data.
60 /// Read \p Size bytes from the underlying stream at the current offset and
62 /// depends on the implementation of the underlying stream. Updates the
63 /// stream's offset to point after the newly read data.
70 /// stream's offset. The data is always copied from the stream's underlying
71 /// buffer into \p Dest. Updates the stream's offset to point after the newly
85 Bytes.data(), Stream.getEndian());
101 /// on the implementation of the underlying stream. Updates the stream's
116 /// on the implementation of the underlying stream. Updates the stream's
123 /// Read the entire remainder of the underlying stream into \p Ref. This is
125 /// stream's offset to point to the end of the stream. Never causes a copy.
131 /// Read \p Length bytes from the underlying stream into \p Ref. This is
133 /// Updates the stream's offset to point after the newly read object. Never
140 /// Read \p Length bytes from the underlying stream into \p Stream. This is
142 /// Updates the stream's offset to point after the newly read object. Never
147 Error readSubstream(BinarySubstreamRef &Stream, uint32_t Size);
149 /// Get a pointer to an object of type T from the underlying stream, as if by
152 /// Updates the stream's offset to point after the newly read object. Whether
154 /// stream.
167 /// from the underlying stream as if by memcpy, and store the resulting array
169 /// type T can be safely treated in this manner. Updates the stream's offset
171 /// the implementation of the underlying stream.
198 /// \p Array. Updates the stream's offset to point after the newly read
201 /// stream).
215 /// \p Array. Updates the stream's offset to point after the newly read
218 /// stream).
244 uint32_t getLength() const { return Stream.getLength(); }
247 /// Advance the stream's offset by \p Amount bytes.
250 /// stream, otherwise returns an appropriate error code.
253 /// Examine the next byte of the underlying stream without advancing the
254 /// stream's offset. If the stream is empty the behavior is undefined.
256 /// \returns the next byte in the stream.
265 BinaryStreamRef Stream;