LLDB  mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::StringTableReader Class Reference

Many cache files require string tables to store data efficiently. More...

#include <DataFileCache.h>

Collaboration diagram for lldb_private::StringTableReader:
Collaboration graph
[legend]

Public Member Functions

 StringTableReader ()=default
 
llvm::StringRef Get (uint32_t offset) const
 
bool Decode (const DataExtractor &data, lldb::offset_t *offset_ptr)
 

Protected Attributes

llvm::StringRef m_data
 All of the strings in the string table are contained in m_data. More...
 

Detailed Description

Many cache files require string tables to store data efficiently.

This class helps give out strings from a string table that was read from a cache file.

Definition at line 202 of file DataFileCache.h.

Constructor & Destructor Documentation

◆ StringTableReader()

lldb_private::StringTableReader::StringTableReader ( )
default

Member Function Documentation

◆ Decode()

bool StringTableReader::Decode ( const DataExtractor data,
lldb::offset_t offset_ptr 
)

◆ Get()

llvm::StringRef StringTableReader::Get ( uint32_t  offset) const

Definition at line 309 of file DataFileCache.cpp.

References m_data.

Referenced by NameToDIE::Decode(), and DecodeCStrMap().

Member Data Documentation

◆ m_data

llvm::StringRef lldb_private::StringTableReader::m_data
protected

All of the strings in the string table are contained in m_data.

Definition at line 212 of file DataFileCache.h.

Referenced by Decode(), and Get().


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