Home | History | Annotate | Download | only in Support

Lines Matching defs:Stream

1 //===- BinaryStreamArray.h - Array backed by an arbitrary stream *- C++ -*-===//
38 /// the underlying stream, and it should fill out the fields of the value type
47 Error operator()(BinaryStreamRef Stream, uint32_t &Len,
52 /// stream. This could be a contiguous sequence of bytes in memory, it could
53 /// be a file on disk, or it could be a PDB stream where bytes are stored as
57 /// re-ordering of stream data to be contiguous before iterating over it. By
98 explicit VarStreamArray(BinaryStreamRef Stream) : Stream(Stream) {}
99 VarStreamArray(BinaryStreamRef Stream, const Extractor &E)
100 : Stream(Stream), E(E) {}
103 : Stream(Other.Stream), E(Other.E) {}
113 BinaryStreamRef getUnderlyingStream() const { return Stream; }
116 BinaryStreamRef Stream;
130 : IterRef(Array.Stream), Array(&Array), HadError(HadError), Extract(E) {
215 /// memory for each element is not read from the backing stream until that
222 explicit FixedStreamArray(BinaryStreamRef Stream) : Stream(Stream) {
223 assert(Stream.getLength() % sizeof(T) == 0);
227 return Stream == Other.Stream;
240 if (auto EC = Stream.readBytes(Off, sizeof(T), Data)) {
241 assert(false && "Unexpected failure reading from stream");
242 // This should never happen since we asserted that the stream length was
250 uint32_t size() const { return Stream.getLength() / sizeof(T); }
262 BinaryStreamRef getUnderlyingStream() const { return Stream; }
265 BinaryStreamRef Stream;