#include <import_table.h>
◆ importsIterator
◆ addImport()
void retdec::fileformat::ImportTable::addImport |
( |
std::unique_ptr< Import > && |
import | ) |
|
Add import
- Parameters
-
import | Import which will be added |
◆ addLibrary()
void retdec::fileformat::ImportTable::addLibrary |
( |
std::string |
name, |
|
|
bool |
isMissingDependency = false |
|
) |
| |
Add name of imported library
- Parameters
-
name | Name of imported library |
isMissingDependency | If true, then it means that the library name might be a missing dependency (aka not normally present on the OS) |
Order in which are libraries added must be same as order of libraries import in input file
◆ begin()
Get begin imports iterator
- Returns
- Begin imports iterator
◆ clear()
void retdec::fileformat::ImportTable::clear |
( |
| ) |
|
Reset table and delete all records from it
◆ computeHashes()
void retdec::fileformat::ImportTable::computeHashes |
( |
| ) |
|
Compute import hashes - CRC32, MD5, SHA256.
◆ dump()
void retdec::fileformat::ImportTable::dump |
( |
std::string & |
dumpTable | ) |
const |
Dump information about all imports in table
- Parameters
-
dumpTable | Into this parameter is stored dump of import table in an LLVM style |
◆ dumpLibrary()
void retdec::fileformat::ImportTable::dumpLibrary |
( |
std::size_t |
libraryIndex, |
|
|
std::string & |
libraryDump |
|
) |
| const |
Dump information about selected library
- Parameters
-
libraryIndex | Index of selected library (indexed from 0) |
libraryDump | Into this parameter is stored dump of selected library |
◆ empty()
bool retdec::fileformat::ImportTable::empty |
( |
| ) |
const |
Check if import table is empty
- Returns
true
if table does not contain any library name or import, false
otherwise
◆ end()
Get end imports iterator
- Returns
- End imports iterator
◆ getImphashCrc32()
const std::string & retdec::fileformat::ImportTable::getImphashCrc32 |
( |
| ) |
const |
Get imphash as CRC32
- Returns
- Imphash as CRC32
◆ getImphashMd5()
const std::string & retdec::fileformat::ImportTable::getImphashMd5 |
( |
| ) |
const |
Get imphash as MD5
- Returns
- Imphash as MD5
◆ getImphashSha256()
const std::string & retdec::fileformat::ImportTable::getImphashSha256 |
( |
| ) |
const |
Get imphash as SHA256
- Returns
- Imphash as SHA256
◆ getImport() [1/2]
const Import * retdec::fileformat::ImportTable::getImport |
( |
const std::string & |
name | ) |
const |
Get import by name
- Parameters
-
name | Name of the import to get |
- Returns
- Pointer to import with the specified name or
nullptr
if such import not found
◆ getImport() [2/2]
const Import * retdec::fileformat::ImportTable::getImport |
( |
std::size_t |
importIndex | ) |
const |
Get selected import
- Parameters
-
importIndex | Index of selected import (indexed from 0) |
- Returns
- Pointer to selected import or
nullptr
if import index is invalid
◆ getImportOnAddress()
const Import * retdec::fileformat::ImportTable::getImportOnAddress |
( |
unsigned long long |
address | ) |
const |
Get selected import
- Parameters
-
address | Adress of selected import |
- Returns
- Pointer to selected import or
nullptr
if import address is invalid
◆ getLibrary()
std::string retdec::fileformat::ImportTable::getLibrary |
( |
std::size_t |
libraryIndex | ) |
const |
Get name of imported library
- Parameters
-
libraryIndex | Index of selected library (indexed from 0) |
- Returns
- Name of selected library or empty string if library index is invalid
◆ getMissingDependencies()
const std::vector< std::string > & retdec::fileformat::ImportTable::getMissingDependencies |
( |
| ) |
const |
Get list of missing dependencies
- Returns
- Vector of missing dependencies
◆ getNumberOfImports()
std::size_t retdec::fileformat::ImportTable::getNumberOfImports |
( |
| ) |
const |
Get number of imports in import table
- Returns
- Number of imports in import table
◆ getNumberOfImportsInLibrary() [1/2]
std::size_t retdec::fileformat::ImportTable::getNumberOfImportsInLibrary |
( |
const std::string & |
name | ) |
const |
Get number of imports from selected library
- Parameters
-
name | Name of selected library |
- Returns
- Number of imports from selected library or 0 if library was not found
◆ getNumberOfImportsInLibrary() [2/2]
std::size_t retdec::fileformat::ImportTable::getNumberOfImportsInLibrary |
( |
std::size_t |
libraryIndex | ) |
const |
Get number of imports from selected library
- Parameters
-
libraryIndex | Index of selected library (indexed from 0) |
- Returns
- Number of imports from selected library or 0 if library index is invalid
◆ getNumberOfImportsInLibraryCaseInsensitive()
std::size_t retdec::fileformat::ImportTable::getNumberOfImportsInLibraryCaseInsensitive |
( |
const std::string & |
name | ) |
const |
Get number of imports from selected library
- Parameters
-
name | Name of selected library (cse-insensitive) |
- Returns
- Number of imports from selected library or 0 if library was not found
◆ getNumberOfLibraries()
std::size_t retdec::fileformat::ImportTable::getNumberOfLibraries |
( |
| ) |
const |
Get number of libraries which are imported
- Returns
- Number of libraries which are imported
◆ hasImport() [1/2]
bool retdec::fileformat::ImportTable::hasImport |
( |
const std::string & |
name | ) |
const |
Check if import with name name exists
- Parameters
-
- Returns
true
if import with name name exists, false
otherwise
◆ hasImport() [2/2]
bool retdec::fileformat::ImportTable::hasImport |
( |
unsigned long long |
address | ) |
const |
Check if import on address exists
- Parameters
-
- Returns
true
if has import on address, false
otherwise
◆ hasImports()
bool retdec::fileformat::ImportTable::hasImports |
( |
| ) |
const |
Find out if there are any imports.
- Returns
true
if there are some imports, false
otherwise
◆ hasLibraries()
bool retdec::fileformat::ImportTable::hasLibraries |
( |
| ) |
const |
Find out if there are any libraries.
- Returns
true
if there are some libraries, false
otherwise.
◆ hasLibrary()
bool retdec::fileformat::ImportTable::hasLibrary |
( |
const std::string & |
name | ) |
const |
Find out if there is library with name name
- Parameters
-
name | Name of selected library |
- Returns
true
if there is library with name name, false
otherwise
◆ hasLibraryCaseInsensitive()
bool retdec::fileformat::ImportTable::hasLibraryCaseInsensitive |
( |
const std::string & |
name | ) |
const |
Find out if there is library with name name (case-insensitive)
- Parameters
-
name | Name of selected library |
- Returns
true
if there is library with name name, false
otherwise
◆ invalidImpHash()
bool retdec::fileformat::ImportTable::invalidImpHash |
( |
| ) |
const |
- Returns
True
if import hashes are invalid, False
otherwise.
◆ impHashCrc32
std::string retdec::fileformat::ImportTable::impHashCrc32 |
|
private |
◆ impHashMd5
std::string retdec::fileformat::ImportTable::impHashMd5 |
|
private |
◆ impHashSha256
std::string retdec::fileformat::ImportTable::impHashSha256 |
|
private |
◆ imports
std::vector<std::unique_ptr<Import> > retdec::fileformat::ImportTable::imports |
|
private |
◆ libraries
std::vector<std::string> retdec::fileformat::ImportTable::libraries |
|
private |
◆ missingDeps
std::vector<std::string> retdec::fileformat::ImportTable::missingDeps |
|
private |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/import_table/import_table.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/import_table/import_table.cpp