Add a stream that occupies a specific list of blocks.

Synopsis

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

Expected<uint32_t>
addStream(
    uint32_t Size,
    ArrayRef<uint32_t> Blocks);

Description

This is useful when reading a MSF file and you want a particular stream to occupy the original set of blocks. If the given blocks are already allocated, or if the number of blocks specified is incorrect for the given stream size, this function will return an Error.

Return Value

The stream index on success, or an error if the blocks cannot be assigned.

Parameters

Name

Description

Size

The size in bytes of the stream to add.

Blocks

The block indices the stream should occupy.

Created with MrDocs