LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::codeview::DebugStringTableSubsectionRef Class Reference

Represents a read-only view of a CodeView string table. More...

#include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"

Inheritance diagram for llvm::codeview::DebugStringTableSubsectionRef:
Inheritance graph
[legend]
Collaboration diagram for llvm::codeview::DebugStringTableSubsectionRef:
Collaboration graph
[legend]

Public Member Functions

 DebugStringTableSubsectionRef ()
 
Error initialize (BinaryStreamRef Contents)
 
Error initialize (BinaryStreamReader &Reader)
 
Expected< StringRefgetString (uint32_t Offset) const
 
bool valid () const
 
BinaryStreamRef getBuffer () const
 
- Public Member Functions inherited from llvm::codeview::DebugSubsectionRef
 DebugSubsectionRef (DebugSubsectionKind Kind)
 
virtual ~DebugSubsectionRef ()
 
DebugSubsectionKind kind () const
 

Static Public Member Functions

static bool classof (const DebugSubsectionRef *S)
 
- Static Public Member Functions inherited from llvm::codeview::DebugSubsectionRef
static bool classof (const DebugSubsectionRef *S)
 

Additional Inherited Members

- Protected Attributes inherited from llvm::codeview::DebugSubsectionRef
DebugSubsectionKind Kind
 

Detailed Description

Represents a read-only view of a CodeView string table.

This is a very simple flat buffer consisting of null-terminated strings, where strings are retrieved by their offset in the buffer. DebugStringTableSubsectionRef does not own the underlying storage for the buffer.

Definition at line 31 of file DebugStringTableSubsection.h.

Constructor & Destructor Documentation

◆ DebugStringTableSubsectionRef()

DebugStringTableSubsectionRef::DebugStringTableSubsectionRef ( )

Definition at line 23 of file DebugStringTableSubsection.cpp.

References llvm::codeview::StringTable.

Member Function Documentation

◆ classof()

static bool llvm::codeview::DebugStringTableSubsectionRef::classof ( const DebugSubsectionRef S)
inlinestatic

◆ getBuffer()

BinaryStreamRef llvm::codeview::DebugStringTableSubsectionRef::getBuffer ( ) const
inline

Definition at line 46 of file DebugStringTableSubsection.h.

Referenced by getFileName().

◆ getString()

Expected< StringRef > DebugStringTableSubsectionRef::getString ( uint32_t  Offset) const

◆ initialize() [1/2]

Error DebugStringTableSubsectionRef::initialize ( BinaryStreamRef  Contents)

◆ initialize() [2/2]

Error DebugStringTableSubsectionRef::initialize ( BinaryStreamReader Reader)

◆ valid()

bool llvm::codeview::DebugStringTableSubsectionRef::valid ( ) const
inline

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