LLVM: llvm::BinaryStreamRefBase< RefType, StreamType > Class Template Reference (original) (raw)
Common stuff for mutable and immutable StreamRefs. More...
#include "[llvm/Support/BinaryStreamRef.h](BinaryStreamRef%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| llvm::endianness | getEndian () const |
| uint64_t | getLength () const |
| RefType | drop_front (uint64_t N) const |
| Return a new BinaryStreamRef with the first N elements removed. | |
| RefType | drop_back (uint64_t N) const |
| Return a new BinaryStreamRef with the last N elements removed. | |
| RefType | keep_front (uint64_t N) const |
| Return a new BinaryStreamRef with only the first N elements remaining. | |
| RefType | keep_back (uint64_t N) const |
| Return a new BinaryStreamRef with only the last N elements remaining. | |
| RefType | drop_symmetric (uint64_t N) const |
| Return a new BinaryStreamRef with the first and last N elements removed. | |
| RefType | slice (uint64_t Offset, uint64_t Len) const |
| Return a new BinaryStreamRef with the first Offset elements removed, and retaining exactly Len elements. | |
| bool | valid () const |
| Protected Member Functions | |
|---|---|
| BinaryStreamRefBase ()=default | |
| BinaryStreamRefBase (StreamType &BorrowedImpl) | |
| BinaryStreamRefBase (std::shared_ptr< StreamType > SharedImpl, uint64_t Offset, std::optional< uint64_t > Length) | |
| BinaryStreamRefBase (StreamType &BorrowedImpl, uint64_t Offset, std::optional< uint64_t > Length) | |
| BinaryStreamRefBase (const BinaryStreamRefBase &Other)=default | |
| BinaryStreamRefBase & | operator= (const BinaryStreamRefBase &Other)=default |
| BinaryStreamRefBase & | operator= (BinaryStreamRefBase &&Other)=default |
| BinaryStreamRefBase (BinaryStreamRefBase &&Other)=default | |
| Error | checkOffsetForRead (uint64_t Offset, uint64_t DataSize) const |
| Protected Attributes | |
|---|---|
| std::shared_ptr< StreamType > | SharedImpl |
| StreamType * | BorrowedImpl = nullptr |
| uint64_t | ViewOffset = 0 |
| std::optional< uint64_t > | Length |
template<class RefType, class StreamType>
class llvm::BinaryStreamRefBase< RefType, StreamType >
Common stuff for mutable and immutable StreamRefs.
Definition at line 24 of file BinaryStreamRef.h.
template<class RefType, class StreamType>
Referenced by BinaryStreamRefBase(), BinaryStreamRefBase(), operator=(), and operator=().
◆ BinaryStreamRefBase() [2/6]
template<class RefType, class StreamType>
◆ BinaryStreamRefBase() [3/6]
template<class RefType, class StreamType>
◆ BinaryStreamRefBase() [4/6]
template<class RefType, class StreamType>
◆ BinaryStreamRefBase() [5/6]
template<class RefType, class StreamType>
◆ BinaryStreamRefBase() [6/6]
template<class RefType, class StreamType>
◆ checkOffsetForRead()
template<class RefType, class StreamType>
◆ drop_back()
template<class RefType, class StreamType>
◆ drop_front()
template<class RefType, class StreamType>
◆ drop_symmetric()
template<class RefType, class StreamType>
◆ getEndian()
template<class RefType, class StreamType>
◆ getLength()
template<class RefType, class StreamType>
◆ keep_back()
template<class RefType, class StreamType>
◆ keep_front()
template<class RefType, class StreamType>
◆ operator=() [1/2]
template<class RefType, class StreamType>
◆ operator=() [2/2]
template<class RefType, class StreamType>
◆ slice()
template<class RefType, class StreamType>
◆ valid()
template<class RefType, class StreamType>
◆ operator==
template<class RefType, class StreamType>
◆ BorrowedImpl
template<class RefType, class StreamType>
◆ Length
template<class RefType, class StreamType>
◆ SharedImpl
template<class RefType, class StreamType>
◆ ViewOffset
template<class RefType, class StreamType>
The documentation for this class was generated from the following file:
- include/llvm/Support/BinaryStreamRef.h