LLVM: llvm::msf::WritableMappedBlockStream Class Reference (original) (raw)

#include "[llvm/DebugInfo/MSF/MappedBlockStream.h](MappedBlockStream%5F8h%5Fsource.html)"

Public Member Functions
llvm::endianness getEndian () const override
Error readBytes (uint64_t Offset, uint64_t Size, ArrayRef< uint8_t > &Buffer) override
Given an offset into the stream and a number of bytes, attempt to read the bytes and set the output ArrayRef to point to data owned by the stream.
Error readLongestContiguousChunk (uint64_t Offset, ArrayRef< uint8_t > &Buffer) override
Given an offset into the stream, read as much as possible without copying any data.
uint64_t getLength () override
Return the number of bytes of data in this stream.
Error writeBytes (uint64_t Offset, ArrayRef< uint8_t > Buffer) override
Attempt to write the given bytes into the stream at the desired offset.
Error commit () override
For buffered streams, commits changes to the backing store.
const MSFStreamLayout & getStreamLayout () const
uint32_t getBlockSize () const
uint32_t getNumBlocks () const
uint32_t getStreamLength () const
Public Member Functions inherited from llvm::WritableBinaryStream
~WritableBinaryStream () override=default
BinaryStreamFlags getFlags () const override
Return the properties of this stream.
Public Member Functions inherited from llvm::BinaryStream
virtual ~BinaryStream ()=default
Static Public Member Functions
static std::unique_ptr< WritableMappedBlockStream > createStream (uint32_t BlockSize, const MSFStreamLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator)
static std::unique_ptr< WritableMappedBlockStream > createIndexedStream (const MSFLayout &Layout, WritableBinaryStreamRef MsfData, uint32_t StreamIndex, BumpPtrAllocator &Allocator)
static std::unique_ptr< WritableMappedBlockStream > createDirectoryStream (const MSFLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator)
static std::unique_ptr< WritableMappedBlockStream > createFpmStream (const MSFLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator, bool AltFpm=false)
Protected Member Functions
WritableMappedBlockStream (uint32_t BlockSize, const MSFStreamLayout &StreamLayout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator)
Protected Member Functions inherited from llvm::WritableBinaryStream
Error checkOffsetForWrite (uint64_t Offset, uint64_t DataSize)
Protected Member Functions inherited from llvm::BinaryStream
Error checkOffsetForRead (uint64_t Offset, uint64_t DataSize)

Definition at line 106 of file MappedBlockStream.h.

commit()

Error WritableMappedBlockStream::commit ( ) overridevirtual

createDirectoryStream()

createFpmStream()

createIndexedStream()

Definition at line 324 of file MappedBlockStream.cpp.

References assert(), llvm::msf::MSFStreamLayout::Blocks, llvm::msf::SuperBlock::BlockSize, createStream(), llvm::msf::MSFStreamLayout::Length, llvm::msf::MSFLayout::SB, llvm::msf::MSFLayout::StreamMap, and llvm::msf::MSFLayout::StreamSizes.

Referenced by llvm::pdb::DbiStreamBuilder::commit(), llvm::pdb::GSIStreamBuilder::commit(), llvm::pdb::InfoStreamBuilder::commit(), llvm::pdb::PDBFileBuilder::commit(), llvm::pdb::TpiStreamBuilder::commit(), and llvm::pdb::DbiModuleDescriptorBuilder::commitSymbolStream().

createStream()

getBlockSize()

uint32_t llvm::msf::WritableMappedBlockStream::getBlockSize ( ) const inline

getEndian()

llvm::endianness llvm::msf::WritableMappedBlockStream::getEndian ( ) const inlineoverridevirtual

getLength()

uint64_t WritableMappedBlockStream::getLength ( ) overridevirtual

getNumBlocks()

uint32_t llvm::msf::WritableMappedBlockStream::getNumBlocks ( ) const inline

getStreamLayout()

getStreamLength()

uint32_t llvm::msf::WritableMappedBlockStream::getStreamLength ( ) const inline

readBytes()

readLongestContiguousChunk()

writeBytes()


The documentation for this class was generated from the following files: