LLVM 20.0.0git
|
VarStreamArrayExtractor is intended to be specialized to provide customized extraction logic. More...
#include "llvm/Support/BinaryStreamArray.h"
Public Member Functions | |
Error | operator() (BinaryStreamRef Stream, uint32_t &Len, T &Item) const =delete |
VarStreamArrayExtractor is intended to be specialized to provide customized extraction logic.
On input it receives a BinaryStreamRef pointing to the beginning of the next record, but where the length of the record is not yet known. Upon completion, it should return an appropriate Error instance if a record could not be extracted, or if one could be extracted it should return success and set Len to the number of bytes this record occupied in the underlying stream, and it should fill out the fields of the value type Item appropriately to represent the current record.
You can specialize this template for your own custom value types to avoid having to specify a second template argument to VarStreamArray (documented below).
Definition at line 47 of file BinaryStreamArray.h.
|
delete |
Definition at line 34 of file DebugChecksumsSubsection.cpp.
References llvm::alignTo(), llvm::codeview::FileChecksumEntry::Checksum, llvm::codeview::EC, llvm::codeview::FileChecksumEntry::FileNameOffset, llvm::codeview::FileChecksumEntry::Kind, llvm::BinaryStreamReader::readBytes(), llvm::BinaryStreamReader::readObject(), and llvm::Error::success().