LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::PE::COFFString Class Reference

This class represents a string located in the COFF string table. More...

#include <COFFString.hpp>

Public Member Functions

 COFFString ()=default
 
 COFFString (uint32_t offset, std::string str)
 
 COFFString (const COFFString &)=default
 
COFFStringoperator= (const COFFString &)=default
 
 COFFString (COFFString &&)=default
 
COFFStringoperator= (COFFString &&)=default
 
 ~COFFString ()=default
 
const std::string & str () const
 The actual string.
 
uint32_t offset () const
 The offset of this string the in the COFF string table. This offset includes the first 4-bytes that holds the table size.
 
COFFStringstr (std::string str)
 
COFFStringoffset (uint32_t value)
 

Detailed Description

This class represents a string located in the COFF string table.

Some of these strings can be used for section names that are greater than 8 bytes. See: Section::coff_string()

Reference: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#coff-string-table

Constructor & Destructor Documentation

◆ COFFString() [1/4]

LIEF::PE::COFFString::COFFString ( )
default

◆ COFFString() [2/4]

LIEF::PE::COFFString::COFFString ( uint32_t offset,
std::string str )
inline

◆ COFFString() [3/4]

LIEF::PE::COFFString::COFFString ( const COFFString & )
default

◆ COFFString() [4/4]

LIEF::PE::COFFString::COFFString ( COFFString && )
default

◆ ~COFFString()

LIEF::PE::COFFString::~COFFString ( )
default

Member Function Documentation

◆ offset() [1/2]

uint32_t LIEF::PE::COFFString::offset ( ) const
inline

The offset of this string the in the COFF string table. This offset includes the first 4-bytes that holds the table size.

◆ offset() [2/2]

COFFString & LIEF::PE::COFFString::offset ( uint32_t value)
inline

◆ operator=() [1/2]

COFFString & LIEF::PE::COFFString::operator= ( COFFString && )
default

◆ operator=() [2/2]

COFFString & LIEF::PE::COFFString::operator= ( const COFFString & )
default

◆ str() [1/2]

const std::string & LIEF::PE::COFFString::str ( ) const
inline

The actual string.

Referenced by operator<<.

◆ str() [2/2]

COFFString & LIEF::PE::COFFString::str ( std::string str)
inline

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