LLVM: llvm::BinaryStream Class Reference (original) (raw)

An interface for accessing data in a stream-like format, but which discourages copying. More...

An interface for accessing data in a stream-like format, but which discourages copying.

Instead of specifying a buffer in which to copy data on a read, the API returns an ArrayRef to data owned by the stream's implementation. Since implementations may not necessarily store data in a single contiguous buffer (or even in memory at all), in such cases a it may be necessary for an implementation to cache such a buffer so that it can return it.

Definition at line 34 of file BinaryStream.h.