LLVM 22.0.0git
llvm::gsym::StringTable Struct Reference

String tables in GSYM files are required to start with an empty string at offset zero. More...

#include "llvm/DebugInfo/GSYM/StringTable.h"

Public Member Functions

 StringTable ()=default
 StringTable (StringRef D)
StringRef operator[] (size_t Offset) const
StringRef getString (uint32_t Offset) const
void clear ()

Public Attributes

StringRef Data

Detailed Description

String tables in GSYM files are required to start with an empty string at offset zero.

Strings must be UTF8 NULL terminated strings.

Definition at line 21 of file StringTable.h.

Constructor & Destructor Documentation

◆ StringTable() [1/2]

llvm::gsym::StringTable::StringTable ( )
default

◆ StringTable() [2/2]

llvm::gsym::StringTable::StringTable ( StringRef D)
inline

Definition at line 24 of file StringTable.h.

References D(), and Data.

Member Function Documentation

◆ clear()

void llvm::gsym::StringTable::clear ( )
inline

Definition at line 33 of file StringTable.h.

References Data.

◆ getString()

StringRef llvm::gsym::StringTable::getString ( uint32_t Offset) const
inline

Definition at line 26 of file StringTable.h.

References Data, and llvm::Offset.

Referenced by llvm::gsym::operator<<(), and operator[]().

◆ operator[]()

StringRef llvm::gsym::StringTable::operator[] ( size_t Offset) const
inline

Definition at line 25 of file StringTable.h.

References getString(), and llvm::Offset.

Member Data Documentation

◆ Data

StringRef llvm::gsym::StringTable::Data

Definition at line 22 of file StringTable.h.

Referenced by clear(), getString(), llvm::gsym::operator<<(), and StringTable().


The documentation for this struct was generated from the following file: