|
LLVM
4.0.0
|
#include <StreamReader.h>
Definition at line 26 of file StreamReader.h.
| StreamReader::StreamReader | ( | ReadableStreamRef | Stream | ) |
Definition at line 18 of file StreamReader.cpp.
|
inline |
Definition at line 108 of file StreamReader.h.
References getLength(), and getOffset().
Referenced by llvm::codeview::consume(), llvm::codeview::serialize_arrayref_tail_impl< T >::deserialize(), empty(), llvm::pdb::NameMap::load(), llvm::pdb::NameHashTable::load(), loadSectionContribs(), llvm::codeview::CodeViewRecordIO::mapByteVectorTail(), llvm::pdb::PDBFile::parseStreamData(), readStreamRef(), llvm::pdb::ModStream::reload(), llvm::pdb::PublicsStream::reload(), llvm::pdb::TpiStream::reload(), llvm::pdb::DbiStream::reload(), skip(), llvm::codeview::CodeViewRecordIO::skipPadding(), and llvm::msf::StreamWriter::writeStreamRef().
|
inline |
Definition at line 104 of file StreamReader.h.
References bytesRemaining().
Referenced by llvm::codeview::consume(), llvm::codeview::serialize_vector_tail_impl< T >::deserialize(), llvm::codeview::serialize_null_term_string_array_impl::deserialize(), llvm::codeview::CodeViewRecordIO::mapVectorTail(), and llvm::codeview::CVTypeVisitor::visitFieldListMemberStream().
|
inline |
Definition at line 107 of file StreamReader.h.
References llvm::msf::StreamRefBase< StreamType, RefType >::getLength().
Referenced by bytesRemaining(), and llvm::codeview::CVTypeDumper::dump().
|
inline |
Definition at line 106 of file StreamReader.h.
Referenced by bytesRemaining(), llvm::pdb::NameMap::load(), llvm::msf::VarStreamArrayExtractor< codeview::CVRecord< Kind > >::operator()(), and readZeroString().
| uint8_t StreamReader::peek | ( | ) | const |
Definition at line 150 of file StreamReader.cpp.
References assert(), llvm::consumeError(), and llvm::msf::ReadableStreamRef::readBytes().
Referenced by llvm::codeview::serialize_vector_tail_impl< T >::deserialize(), llvm::codeview::serialize_null_term_string_array_impl::deserialize(), llvm::codeview::CodeViewRecordIO::mapVectorTail(), and llvm::codeview::CodeViewRecordIO::skipPadding().
|
inline |
Definition at line 62 of file StreamReader.h.
References llvm::ArrayRef< T >::data(), llvm::msf::insufficient_buffer, readBytes(), and llvm::Error::success().
Referenced by llvm::codeview::serialize_array_impl< T, U >::deserialize(), llvm::codeview::serialize_arrayref_tail_impl< T >::deserialize(), llvm::codeview::CVTypeDumper::dump(), llvm::pdb::NameHashTable::load(), loadSectionContribs(), llvm::msf::VarStreamArrayExtractor< codeview::LineColumnEntry >::operator()(), llvm::pdb::PDBFile::parseFileHeaders(), llvm::pdb::PDBFile::parseStreamData(), llvm::pdb::readGSIHashBuckets(), llvm::pdb::readGSIHashRecords(), llvm::pdb::SymbolStream::reload(), llvm::pdb::ModStream::reload(), llvm::pdb::PublicsStream::reload(), llvm::pdb::TpiStream::reload(), and llvm::pdb::DbiStream::reload().
|
inline |
Definition at line 79 of file StreamReader.h.
References llvm::msf::VarStreamArray< ValueType, Extractor >::getExtractor(), readStreamRef(), and llvm::Error::success().
|
inline |
Definition at line 88 of file StreamReader.h.
References llvm::msf::StreamRefBase< StreamType, RefType >::getLength(), llvm::msf::insufficient_buffer, llvm::msf::invalid_format, llvm::msf::StreamRefBase< StreamType, RefType >::slice(), llvm::Error::success(), and T.
Definition at line 27 of file StreamReader.cpp.
References llvm::msf::ReadableStreamRef::readBytes(), and llvm::Error::success().
Referenced by llvm::codeview::CodeViewRecordIO::mapByteVectorTail(), llvm::msf::VarStreamArrayExtractor< codeview::CVRecord< Kind > >::operator()(), llvm::msf::VarStreamArrayExtractor< codeview::FileChecksumEntry >::operator()(), llvm::pdb::PDBFile::parseFileHeaders(), readArray(), readFixedString(), llvm::pdb::readGSIHashBuckets(), readObject(), and readZeroString().
Definition at line 45 of file StreamReader.h.
References N, readInteger(), and llvm::Error::success().
Referenced by llvm::codeview::CVTypeVisitor::visitFieldListMemberStream().
Definition at line 123 of file StreamReader.cpp.
References llvm::ArrayRef< T >::begin(), readBytes(), llvm::ArrayRef< T >::size(), and llvm::Error::success().
Referenced by llvm::codeview::CodeViewRecordIO::mapGuid().
| Error StreamReader::readInteger | ( | uint8_t & | Dest | ) |
Definition at line 34 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
Referenced by llvm::codeview::consume(), llvm::pdb::NameMap::load(), llvm::pdb::NameHashTable::load(), llvm::codeview::CodeViewRecordIO::mapInteger(), llvm::codeview::CodeViewRecordIO::mapVectorN(), llvm::pdb::PDBFile::parseStreamData(), readEnum(), and llvm::pdb::ModStream::reload().
| Error StreamReader::readInteger | ( | uint16_t & | Dest | ) |
Definition at line 42 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
Definition at line 50 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
| Error StreamReader::readInteger | ( | uint64_t & | Dest | ) |
Definition at line 58 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
| Error StreamReader::readInteger | ( | int8_t & | Dest | ) |
Definition at line 66 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
| Error StreamReader::readInteger | ( | int16_t & | Dest | ) |
Definition at line 74 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
| Error StreamReader::readInteger | ( | int32_t & | Dest | ) |
Definition at line 82 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
| Error StreamReader::readInteger | ( | int64_t & | Dest | ) |
Definition at line 90 of file StreamReader.cpp.
References P, readObject(), and llvm::Error::success().
Definition at line 20 of file StreamReader.cpp.
References llvm::msf::ReadableStreamRef::readLongestContiguousChunk(), llvm::ArrayRef< T >::size(), and llvm::Error::success().
Referenced by llvm::msf::StreamWriter::writeStreamRef().
Definition at line 53 of file StreamReader.h.
References llvm::ArrayRef< T >::data(), readBytes(), and llvm::Error::success().
Referenced by llvm::codeview::consume(), llvm::pdb::ModInfo::initialize(), llvm::codeview::ModuleSubstream::initialize(), llvm::pdb::NameHashTable::load(), llvm::codeview::CodeViewRecordIO::mapObject(), llvm::msf::VarStreamArrayExtractor< codeview::CVRecord< Kind > >::operator()(), llvm::msf::VarStreamArrayExtractor< codeview::LineColumnEntry >::operator()(), llvm::msf::VarStreamArrayExtractor< codeview::FileChecksumEntry >::operator()(), llvm::pdb::PDBFile::parseFileHeaders(), llvm::pdb::readGSIHashHeader(), readInteger(), readZeroString(), llvm::pdb::InfoStream::reload(), llvm::pdb::PublicsStream::reload(), llvm::pdb::TpiStream::reload(), and llvm::pdb::DbiStream::reload().
| Error StreamReader::readStreamRef | ( | ReadableStreamRef & | Ref | ) |
Definition at line 131 of file StreamReader.cpp.
References bytesRemaining().
Referenced by llvm::codeview::ModuleSubstream::initialize(), llvm::pdb::NameHashTable::load(), readArray(), llvm::pdb::ModStream::reload(), and llvm::pdb::DbiStream::reload().
| Error StreamReader::readStreamRef | ( | ReadableStreamRef & | Ref, |
| uint32_t | Length | ||
| ) |
Definition at line 135 of file StreamReader.cpp.
References bytesRemaining(), llvm::msf::insufficient_buffer, llvm::msf::StreamRefBase< StreamType, RefType >::slice(), and llvm::Error::success().
Definition at line 98 of file StreamReader.cpp.
References llvm::ArrayRef< T >::begin(), C, getOffset(), readBytes(), readObject(), setOffset(), llvm::ArrayRef< T >::size(), and llvm::Error::success().
Referenced by llvm::codeview::consume(), llvm::codeview::serialize_null_term_string_array_impl::deserialize(), llvm::pdb::DbiStream::getFileNameForIndex(), llvm::pdb::NameHashTable::getStringForID(), llvm::pdb::ModInfo::initialize(), llvm::pdb::NameMap::load(), and llvm::codeview::CodeViewRecordIO::mapStringZ().
|
inline |
Definition at line 105 of file StreamReader.h.
Referenced by llvm::pdb::DbiStream::getFileNameForIndex(), llvm::pdb::NameHashTable::getStringForID(), llvm::pdb::NameMap::load(), llvm::msf::VarStreamArrayExtractor< codeview::CVRecord< Kind > >::operator()(), llvm::pdb::PDBFile::parseFileHeaders(), and readZeroString().
Definition at line 143 of file StreamReader.cpp.
References bytesRemaining(), llvm::msf::insufficient_buffer, and llvm::Error::success().
Referenced by llvm::codeview::serialize_null_term_string_array_impl::deserialize(), and llvm::codeview::CodeViewRecordIO::skipPadding().
1.8.6