LLVM 20.0.0git
|
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length. More...
#include "llvm/Support/BinaryStreamArray.h"
Public Types | |
typedef FixedStreamArrayIterator< T > | Iterator |
Public Member Functions | |
FixedStreamArray ()=default | |
FixedStreamArray (BinaryStreamRef Stream) | |
bool | operator== (const FixedStreamArray< T > &Other) const |
bool | operator!= (const FixedStreamArray< T > &Other) const |
FixedStreamArray (const FixedStreamArray &)=default | |
FixedStreamArray & | operator= (const FixedStreamArray &)=default |
const T & | operator[] (uint32_t Index) const |
uint32_t | size () const |
bool | empty () const |
FixedStreamArrayIterator< T > | begin () const |
FixedStreamArrayIterator< T > | end () const |
const T & | front () const |
const T & | back () const |
BinaryStreamRef | getUnderlyingStream () const |
Friends | |
class | FixedStreamArrayIterator< T > |
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
As with VarStreamArray, there is no upfront cost associated with building or copying a FixedStreamArray, as the memory for each element is not read from the backing stream until that element is iterated.
Definition at line 259 of file BinaryStreamArray.h.
typedef FixedStreamArrayIterator<T> llvm::FixedStreamArray< T >::Iterator |
Definition at line 263 of file BinaryStreamArray.h.
|
default |
|
inlineexplicit |
Definition at line 266 of file BinaryStreamArray.h.
References assert(), and llvm::BinaryStreamRefBase< RefType, StreamType >::getLength().
|
default |
|
inline |
Definition at line 308 of file BinaryStreamArray.h.
References llvm::FixedStreamArray< T >::end(), and I.
|
inline |
Definition at line 299 of file BinaryStreamArray.h.
References llvm::FixedStreamArray< T >::FixedStreamArrayIterator< T >.
Referenced by llvm::codeview::DebugSymbolRVASubsectionRef::begin(), llvm::pdb::GSIHashTable::begin(), llvm::FixedStreamArray< T >::front(), and resolveTypeIndexReferences().
|
inline |
Definition at line 297 of file BinaryStreamArray.h.
References llvm::FixedStreamArray< T >::size().
Referenced by llvm::pdb::TpiStream::buildHashMap().
|
inline |
Definition at line 303 of file BinaryStreamArray.h.
References llvm::FixedStreamArray< T >::FixedStreamArrayIterator< T >, and llvm::FixedStreamArray< T >::size().
Referenced by llvm::FixedStreamArray< T >::back(), llvm::codeview::DebugSymbolRVASubsectionRef::end(), llvm::pdb::GSIHashTable::end(), and resolveTypeIndexReferences().
|
inline |
Definition at line 307 of file BinaryStreamArray.h.
References llvm::FixedStreamArray< T >::begin().
|
inline |
Definition at line 313 of file BinaryStreamArray.h.
|
inline |
Definition at line 274 of file BinaryStreamArray.h.
References llvm::Other.
|
default |
|
inline |
Definition at line 270 of file BinaryStreamArray.h.
References llvm::Other.
|
inline |
Definition at line 281 of file BinaryStreamArray.h.
References assert(), llvm::consumeError(), llvm::Data, llvm::isAddrAligned(), llvm::BinaryStreamRef::readBytes(), llvm::FixedStreamArray< T >::size(), and T.
|
inline |
Definition at line 295 of file BinaryStreamArray.h.
References llvm::BinaryStreamRefBase< RefType, StreamType >::getLength(), and T.
Referenced by llvm::FixedStreamArray< T >::empty(), llvm::FixedStreamArray< T >::end(), llvm::pdb::GlobalsStream::findRecordsByName(), llvm::pdb::PDBStringTable::getIDForString(), and llvm::FixedStreamArray< T >::operator[]().
|
friend |
Definition at line 249 of file BinaryStreamArray.h.
Referenced by llvm::FixedStreamArray< T >::begin(), and llvm::FixedStreamArray< T >::end().