BinaryStreamRef is to BinaryStream what ArrayRef is to an Array. It provides copy‐semantics and read only access to a "window" of the underlying BinaryStream. Note that BinaryStreamRef is not a BinaryStream. That is to say, it does not inherit and override the methods of BinaryStream. In general, you should not pass around pointers or references to BinaryStreams and use inheritance to achieve polymorphism. Instead, you should pass around BinaryStreamRefs by value and achieve polymorphism that way.
Synopsis
Declared in <llvm/Support/BinaryStreamRef.h>
class BinaryStreamRef
: public BinaryStreamRefBase<BinaryStreamRef, BinaryStream>
Base Classes
Name |
Description |
Common stuff for mutable and immutable StreamRefs. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Return a new BinaryStreamRef with the last |
|
Return a new BinaryStreamRef with the first |
|
Return a new BinaryStreamRef with the first and last |
|
Return a new BinaryStreamRef with only the last |
|
Return a new BinaryStreamRef with only the first |
|
Given an Offset into this StreamRef and a Size, return a reference to a buffer owned by the stream. |
|
Given an Offset into this BinaryStreamRef, return a reference to the largest buffer the stream could support without necessitating a copy. |
|
Return a new BinaryStreamRef with the first |
|
Protected Member Functions
Name |
Description |
Assignment operators |
|
Protected Data Members
Friends
Name |
Description |
Common stuff for mutable and immutable StreamRefs. |
Non-Member Functions
Name |
Description |
Equality operator |
|
Read a complete record from a stream at a random offset. |
Created with MrDocs