LLVM
8.0.1
|
Common stuff for mutable and immutable StreamRefs. More...
#include "llvm/Support/BinaryStreamRef.h"
Public Member Functions | |
llvm::support::endianness | getEndian () const |
uint32_t | getLength () const |
RefType | drop_front (uint32_t N) const |
Return a new BinaryStreamRef with the first N elements removed. More... | |
RefType | drop_back (uint32_t N) const |
Return a new BinaryStreamRef with the last N elements removed. More... | |
RefType | keep_front (uint32_t N) const |
Return a new BinaryStreamRef with only the first N elements remaining. More... | |
RefType | keep_back (uint32_t N) const |
Return a new BinaryStreamRef with only the last N elements remaining. More... | |
RefType | drop_symmetric (uint32_t N) const |
Return a new BinaryStreamRef with the first and last N elements removed. More... | |
RefType | slice (uint32_t Offset, uint32_t Len) const |
Return a new BinaryStreamRef with the first Offset elements removed, and retaining exactly Len elements. More... | |
bool | valid () const |
bool | operator== (const RefType &Other) const |
Protected Member Functions | |
BinaryStreamRefBase ()=default | |
BinaryStreamRefBase (StreamType &BorrowedImpl) | |
BinaryStreamRefBase (std::shared_ptr< StreamType > SharedImpl, uint32_t Offset, Optional< uint32_t > Length) | |
BinaryStreamRefBase (StreamType &BorrowedImpl, uint32_t Offset, Optional< uint32_t > Length) | |
BinaryStreamRefBase (const BinaryStreamRefBase &Other)=default | |
BinaryStreamRefBase & | operator= (const BinaryStreamRefBase &Other)=default |
BinaryStreamRefBase & | operator= (BinaryStreamRefBase &&Other)=default |
BinaryStreamRefBase (BinaryStreamRefBase &&Other)=default | |
Error | checkOffsetForRead (uint32_t Offset, uint32_t DataSize) const |
Protected Attributes | |
std::shared_ptr< StreamType > | SharedImpl |
StreamType * | BorrowedImpl = nullptr |
uint32_t | ViewOffset = 0 |
Optional< uint32_t > | Length |
Common stuff for mutable and immutable StreamRefs.
Definition at line 25 of file BinaryStreamRef.h.
|
protecteddefault |
|
inlineexplicitprotected |
Definition at line 28 of file BinaryStreamRef.h.
|
inlineprotected |
Definition at line 34 of file BinaryStreamRef.h.
|
inlineprotected |
Definition at line 38 of file BinaryStreamRef.h.
|
protecteddefault |
|
protecteddefault |
|
inlineprotected |
Definition at line 136 of file BinaryStreamRef.h.
|
inline |
Return a new BinaryStreamRef with the last N
elements removed.
If this BinaryStreamRef is length-tracking and N
is greater than 0, then this BinaryStreamRef will no longer length-track.
Definition at line 80 of file BinaryStreamRef.h.
Referenced by llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::keep_front().
|
inline |
Return a new BinaryStreamRef with the first N
elements removed.
If this BinaryStreamRef is length-tracking, then the resulting one will be too.
Definition at line 62 of file BinaryStreamRef.h.
Referenced by llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::drop_symmetric(), llvm::pdb::DbiStreamBuilder::getSourceFileNameIndex(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::keep_back(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::slice(), llvm::BinaryStreamWriter::split(), llvm::BinarySubstreamRef::split(), and llvm::BinaryStreamReader::split().
|
inline |
Return a new BinaryStreamRef with the first and last N
elements removed.
Definition at line 113 of file BinaryStreamRef.h.
|
inline |
Definition at line 48 of file BinaryStreamRef.h.
|
inline |
Definition at line 52 of file BinaryStreamRef.h.
Referenced by llvm::codeview::DebugSubsectionRecordBuilder::calculateSerializedLength(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::checkOffsetForRead(), llvm::codeview::DebugSubsectionRecordBuilder::commit(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::drop_back(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::drop_front(), llvm::FixedStreamArray< PSHashRecord >::FixedStreamArray(), llvm::codeview::DebugSubsectionRecord::getRecordLength(), llvm::pdb::DbiModuleList::initialize(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::keep_back(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::keep_front(), llvm::BinarySubstreamRef::size(), and llvm::BinaryStreamWriter::writeStreamRef().
|
inline |
Return a new BinaryStreamRef with only the last N
elements remaining.
Definition at line 106 of file BinaryStreamRef.h.
|
inline |
Return a new BinaryStreamRef with only the first N
elements remaining.
Definition at line 100 of file BinaryStreamRef.h.
Referenced by llvm::pdb::DbiStreamBuilder::getSourceFileNameIndex(), llvm::BinaryStreamWriter::split(), llvm::BinarySubstreamRef::split(), and llvm::BinaryStreamReader::split().
|
protecteddefault |
|
protecteddefault |
|
inline |
Definition at line 125 of file BinaryStreamRef.h.
|
inline |
Return a new BinaryStreamRef with the first Offset
elements removed, and retaining exactly Len
elements.
Definition at line 119 of file BinaryStreamRef.h.
Referenced by llvm::BinarySubstreamRef::drop_front(), llvm::BinarySubstreamRef::keep_front(), llvm::BinaryStreamReader::readStreamRef(), llvm::BinarySubstreamRef::slice(), and llvm::BinaryStreamWriter::writeStreamRef().
|
inline |
Definition at line 123 of file BinaryStreamRef.h.
Referenced by llvm::codeview::DebugStringTableSubsectionRef::valid().
|
protected |
Definition at line 145 of file BinaryStreamRef.h.
Referenced by llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::drop_back(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::drop_front(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::getEndian(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::getLength(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::operator==(), and llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::valid().
|
protected |
Definition at line 147 of file BinaryStreamRef.h.
Referenced by llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::BinaryStreamRefBase(), llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::getLength(), and llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::operator==().
|
protected |
Definition at line 144 of file BinaryStreamRef.h.
|
protected |
Definition at line 146 of file BinaryStreamRef.h.
Referenced by llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::getLength(), and llvm::BinaryStreamRefBase< WritableBinaryStreamRef, WritableBinaryStream >::operator==().