LLVM  6.0.0svn
Classes | Enumerations | Functions | Variables
llvm::msf Namespace Reference

Classes

class  IMSFFile
 
class  MappedBlockStream
 MappedBlockStream represents data stored in an MSF file into chunks of a particular size (called the Block Size), and whose chunks may not be necessarily contiguous. More...
 
class  MSFBuilder
 
class  MSFError
 Base class for errors originating when parsing raw PDB files. More...
 
struct  MSFLayout
 
class  MSFStreamLayout
 Describes the layout of a stream in an MSF layout. More...
 
struct  SuperBlock
 
class  WritableMappedBlockStream
 

Enumerations

enum  msf_error_code {
  msf_error_code::unspecified = 1, msf_error_code::insufficient_buffer, msf_error_code::not_writable, msf_error_code::no_stream,
  msf_error_code::invalid_format, msf_error_code::block_in_use
}
 

Functions

MSFStreamLayout getFpmStreamLayout (const MSFLayout &Msf, bool IncludeUnusedFpmData=false, bool AltFpm=false)
 Determine the layout of the FPM stream, given the MSF layout. More...
 
bool isValidBlockSize (uint32_t Size)
 
uint32_t getMinimumBlockCount ()
 
uint32_t getFirstUnreservedBlock ()
 
uint64_t bytesToBlocks (uint64_t NumBytes, uint64_t BlockSize)
 
uint64_t blockToOffset (uint64_t BlockNumber, uint64_t BlockSize)
 
uint32_t getFpmIntervalLength (const MSFLayout &L)
 
uint32_t getNumFpmIntervals (const MSFLayout &L, bool IncludeUnusedFpmData=false)
 
Error validateSuperBlock (const SuperBlock &SB)
 

Variables

static const char Magic []
 

Enumeration Type Documentation

◆ msf_error_code

Enumerator
unspecified 
insufficient_buffer 
not_writable 
no_stream 
invalid_format 
block_in_use 

Definition at line 19 of file MSFError.h.

Function Documentation

◆ blockToOffset()

uint64_t llvm::msf::blockToOffset ( uint64_t  BlockNumber,
uint64_t  BlockSize 
)
inline

◆ bytesToBlocks()

uint64_t llvm::msf::bytesToBlocks ( uint64_t  NumBytes,
uint64_t  BlockSize 
)
inline

◆ getFirstUnreservedBlock()

uint32_t llvm::msf::getFirstUnreservedBlock ( )
inline

Definition at line 97 of file MSFCommon.h.

◆ getFpmIntervalLength()

uint32_t llvm::msf::getFpmIntervalLength ( const MSFLayout L)
inline

◆ getFpmStreamLayout()

MSFStreamLayout llvm::msf::getFpmStreamLayout ( const MSFLayout Msf,
bool  IncludeUnusedFpmData = false,
bool  AltFpm = false 
)

◆ getMinimumBlockCount()

uint32_t llvm::msf::getMinimumBlockCount ( )
inline

Definition at line 93 of file MSFCommon.h.

Referenced by llvm::msf::MSFBuilder::create().

◆ getNumFpmIntervals()

uint32_t llvm::msf::getNumFpmIntervals ( const MSFLayout L,
bool  IncludeUnusedFpmData = false 
)
inline

◆ isValidBlockSize()

bool llvm::msf::isValidBlockSize ( uint32_t  Size)
inline

Definition at line 81 of file MSFCommon.h.

Referenced by llvm::msf::MSFBuilder::create(), and validateSuperBlock().

◆ validateSuperBlock()

Error llvm::msf::validateSuperBlock ( const SuperBlock SB)

Variable Documentation

◆ Magic

const char llvm::msf::Magic[]
static
Initial value:
= {'M', 'i', 'c', 'r', 'o', 's', 'o', 'f',
't', ' ', 'C', '/', 'C', '+', '+', ' ',
'M', 'S', 'F', ' ', '7', '.', '0', '0',
'\r', '\n', '\x1a', 'D', 'S', '\0', '\0', '\0'}

Definition at line 24 of file MSFCommon.h.

Referenced by llvm::msf::MSFBuilder::build(), and validateSuperBlock().