19 using namespace llvm::msf;
20 using namespace llvm::pdb;
32 uint32_t NumBitmapEntries = BitmapSizeInBits / 8;
33 Size += NumBitmapEntries;
51 RecordStreamIdx = *RecordIdx;
81 uint32_t NumBitmapEntries = BitmapSizeInBits / 8;
82 std::vector<uint8_t> BitmapData(NumBitmapEntries);
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
Error writeBytes(ArrayRef< uint8_t > Buffer)
Write the bytes specified in Buffer to the underlying stream.
Error finalizeMsfLayout()
static const unsigned IPHR_HASH
From https://github.com/Microsoft/microsoft-pdb/blob/master/PDB/dbi/gsi.cpp.
uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew=0)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
Error takeError()
Take ownership of the stored error.
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
Tagged union holding either a T or a Error.
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
Error commit(BinaryStreamWriter &PublicsWriter)
Provides write only access to a subclass of WritableBinaryStream.
static ErrorSuccess success()
Create a success value.
Expected< uint32_t > addStream(uint32_t Size, ArrayRef< uint32_t > Blocks)
Add a stream to the MSF file with the given size, occupying the given list of blocks.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
uint32_t calculateSerializedLength() const
Lightweight error class with error context and mandatory checking.