COFFI
1.2
               
coffi_strings Class Reference

Class for accessing the strings table. More...

+ Inheritance diagram for coffi_strings:

Public Member Functions

 coffi_strings (const coffi_strings &)=delete
 Discards the copy constructor.
 
uint32_t get_strings_size () const
 
void set_strings_size (uint32_t value)
 
virtual std::string string_to_name (const char *str) const
 Converts an 8-bytes symbol short name into a full name, eventually by looking into the strings table. More...
 
virtual std::string section_string_to_name (const char *str) const
 Converts an 8-bytes section short name into a full name, eventually by looking into the strings table. More...
 
virtual void name_to_string (const std::string &name, char *str)
 Converts symbol full name into an 8-bytes short name, eventually creating an entry in the strings table. More...
 
virtual void name_to_section_string (const std::string &name, char *str)
 Converts section full name into an 8-bytes short name, eventually creating an entry in the strings table. More...
 
virtual const char * get_strings () const
 
virtual void set_strings (const char *str, uint32_t size)
 

Detailed Description

Class for accessing the strings table.

Definition at line 40 of file coffi_strings.hpp.

Member Function Documentation

◆ name_to_section_string()

virtual void name_to_section_string ( const std::string &  name,
char *  str 
)
inlinevirtual

Converts section full name into an 8-bytes short name, eventually creating an entry in the strings table.

Implements string_to_name_provider.

Definition at line 98 of file coffi_strings.hpp.

◆ name_to_string()

virtual void name_to_string ( const std::string &  name,
char *  str 
)
inlinevirtual

Converts symbol full name into an 8-bytes short name, eventually creating an entry in the strings table.

Implements string_to_name_provider.

Definition at line 91 of file coffi_strings.hpp.

◆ section_string_to_name()

virtual std::string section_string_to_name ( const char *  str) const
inlinevirtual

Converts an 8-bytes section short name into a full name, eventually by looking into the strings table.

Note
Section short names that reference the string table start with "/".

Implements string_to_name_provider.

Definition at line 84 of file coffi_strings.hpp.

◆ string_to_name()

virtual std::string string_to_name ( const char *  str) const
inlinevirtual

Converts an 8-bytes symbol short name into a full name, eventually by looking into the strings table.

Note
Symbol short names that reference the string table start with "\x00\x00\x00\x00".

Implements string_to_name_provider.

Definition at line 77 of file coffi_strings.hpp.


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