A writable BinaryStream view of a possibly discontiguous MSF stream.

Synopsis

Declared in <llvm/DebugInfo/MSF/MappedBlockStream.h>

class WritableMappedBlockStream
    : public WritableBinaryStream

Base Classes

Name

Description

WritableBinaryStream

A BinaryStream that supports both reading and writing.

Member Functions

Name

Description

commit [virtual]

Commit buffered writes to the underlying MSF backing store.

getBlockSize

Return the size in bytes of each MSF block.

getEndian [virtual]

Return the endianness of multi‐byte values in this stream.

getFlags [virtual]

Return the properties of this stream.

getLength [virtual]

Return the number of bytes of data in this stream.

getNumBlocks

Return the number of blocks that make up this stream.

getStreamLayout

Return the layout describing which blocks make up this stream.

getStreamLength

Return the logical length in bytes of this stream.

readBytes [virtual]

Read Size bytes starting at Offset into Buffer.

readLongestContiguousChunk [virtual]

Read the longest contiguous chunk starting at Offset.

writeBytes [virtual]

Write Buffer into the stream starting at Offset.

Static Member Functions

Name

Description

createDirectoryStream

Create a writable stream over the MSF directory.

createFpmStream

Create a writable stream over the free page map (FPM) of an MSF file.

createIndexedStream

Create a writable stream for the MSF stream at the given directory index.

createStream

Create a writable stream over an arbitrary MSF stream layout.

Protected Member Functions

Name

Description

WritableMappedBlockStream [constructor]

Construct a WritableMappedBlockStream for the given layout and MSF data.

checkOffsetForRead

Check that Offset and DataSize form a valid read range.

checkOffsetForWrite

Check that Offset and DataSize form a valid write range.

Created with MrDocs