#include <resource_table.h>
◆ resourcesIterator
◆ addResource()
void retdec::fileformat::ResourceTable::addResource |
( |
std::unique_ptr< Resource > && |
newResource | ) |
|
◆ addResourceIcon()
void retdec::fileformat::ResourceTable::addResourceIcon |
( |
ResourceIcon * |
icon | ) |
|
Add icon
- Parameters
-
icon | Icon which will be added |
◆ addResourceIconGroup()
void retdec::fileformat::ResourceTable::addResourceIconGroup |
( |
ResourceIconGroup * |
iGroup | ) |
|
Add icon group
- Parameters
-
iGroup | Icon group which will be added |
◆ addResourceVersion()
void retdec::fileformat::ResourceTable::addResourceVersion |
( |
Resource * |
ver | ) |
|
Add version resource
- Parameters
-
ver | Version resource which will be added |
◆ begin()
Get begin iterator
- Returns
- Begin iterator
◆ clear()
void retdec::fileformat::ResourceTable::clear |
( |
| ) |
|
Delete all records from table
◆ computeIconHashes()
void retdec::fileformat::ResourceTable::computeIconHashes |
( |
| ) |
|
Compute icon hashes - CRC32, MD5, SHA256.
◆ computePerceptualAvgHash()
std::string retdec::fileformat::ResourceTable::computePerceptualAvgHash |
( |
const ResourceIcon & |
icon | ) |
const |
|
private |
Compute icon perceptual hashes
- Parameters
-
icon | Icon to compute the hash of |
- Returns
- Perceptual hash as AvgHash
◆ dump()
void retdec::fileformat::ResourceTable::dump |
( |
std::string & |
dumpTable | ) |
const |
Dump information about all resources in table
- Parameters
-
dumpTable | Into this parameter is stored dump of table in an LLVM style |
◆ end()
Get end iterator
- Returns
- End iterator
◆ getLanguage()
const std::pair< std::string, std::string > * retdec::fileformat::ResourceTable::getLanguage |
( |
std::size_t |
rIndex | ) |
const |
Get selected language
- Parameters
-
rIndex | Index of selected language (indexed from 0) |
- Returns
- Pointer to selected language or
nullptr
if language index is invalid
◆ getLoadedSize()
std::size_t retdec::fileformat::ResourceTable::getLoadedSize |
( |
| ) |
const |
Get total loaded size of resources
- Returns
- Total loaded size of resources
◆ getNumberOfLanguages()
std::size_t retdec::fileformat::ResourceTable::getNumberOfLanguages |
( |
| ) |
const |
Get number of supported languages
- Returns
- Number of supported languages
◆ getNumberOfResources()
std::size_t retdec::fileformat::ResourceTable::getNumberOfResources |
( |
| ) |
const |
Get number of stored resources
- Returns
- Number of stored resources
◆ getNumberOfStrings()
std::size_t retdec::fileformat::ResourceTable::getNumberOfStrings |
( |
| ) |
const |
Get number of strings
- Returns
- Number of strings
◆ getPriorResourceIconGroup()
const ResourceIconGroup * retdec::fileformat::ResourceTable::getPriorResourceIconGroup |
( |
| ) |
const |
Get prior icon group
- Returns
- Prior icon group
◆ getResource()
const Resource * retdec::fileformat::ResourceTable::getResource |
( |
std::size_t |
rIndex | ) |
const |
Get selected resource
- Parameters
-
rIndex | Index of selected resource (indexed from 0) |
- Returns
- Pointer to selected resource or
nullptr
if resource index is invalid
◆ getResourceIconhashCrc32()
const std::string & retdec::fileformat::ResourceTable::getResourceIconhashCrc32 |
( |
| ) |
const |
Get iconhash as CRC32
- Returns
- Iconhash as CRC32
◆ getResourceIconhashMd5()
const std::string & retdec::fileformat::ResourceTable::getResourceIconhashMd5 |
( |
| ) |
const |
Get iconhash as MD5
- Returns
- Iconhash as MD5
◆ getResourceIconhashSha256()
const std::string & retdec::fileformat::ResourceTable::getResourceIconhashSha256 |
( |
| ) |
const |
Get iconhash as SHA256
- Returns
- Iconhash as SHA256
◆ getResourceIconPerceptualAvgHash()
const std::string & retdec::fileformat::ResourceTable::getResourceIconPerceptualAvgHash |
( |
| ) |
const |
Get icon perceptual hash as AvgHash
- Returns
- Icon perceptual hash as AvgHash
◆ getResourceWithLanguage() [1/2]
const Resource * retdec::fileformat::ResourceTable::getResourceWithLanguage |
( |
const std::string & |
rLan | ) |
const |
Get resource by language
- Parameters
-
rLan | Language of the resource to get |
- Returns
- Pointer to resource with the specified language or
nullptr
if such resource not found
◆ getResourceWithLanguage() [2/2]
const Resource * retdec::fileformat::ResourceTable::getResourceWithLanguage |
( |
std::size_t |
rId | ) |
const |
Get resource by language ID
- Parameters
-
rId | Language ID of the resource to get |
- Returns
- Pointer to resource with specified language ID or
nullptr
if such resource not found
◆ getResourceWithName() [1/2]
const Resource * retdec::fileformat::ResourceTable::getResourceWithName |
( |
const std::string & |
rName | ) |
const |
Get resource by name
- Parameters
-
rName | Name of the resource to get |
- Returns
- Pointer to resource with the specified name or
nullptr
if such resource not found
◆ getResourceWithName() [2/2]
const Resource * retdec::fileformat::ResourceTable::getResourceWithName |
( |
std::size_t |
rId | ) |
const |
Get resource by name ID
- Parameters
-
rId | Name ID of the resource to get |
- Returns
- Pointer to resource with specified name ID or
nullptr
if such resource not found
◆ getResourceWithType() [1/2]
const Resource * retdec::fileformat::ResourceTable::getResourceWithType |
( |
const std::string & |
rType | ) |
const |
Get resource by type
- Parameters
-
rType | Type of the resource to get |
- Returns
- Pointer to resource with the specified type or
nullptr
if such resource not found
◆ getResourceWithType() [2/2]
const Resource * retdec::fileformat::ResourceTable::getResourceWithType |
( |
std::size_t |
rId | ) |
const |
Get resource by type ID
- Parameters
-
rId | Type ID of the resource to get |
- Returns
- Pointer to resource with specified type ID or
nullptr
if such resource not found
◆ getSizeInFile()
std::size_t retdec::fileformat::ResourceTable::getSizeInFile |
( |
| ) |
const |
Get total declared size of resources
- Returns
- Total declared size of resources
◆ getString()
const std::pair< std::string, std::string > * retdec::fileformat::ResourceTable::getString |
( |
std::size_t |
rIndex | ) |
const |
Get selected string
- Parameters
-
rIndex | Index of selected string (indexed from 0) |
- Returns
- Pointer to selected string or
nullptr
if string index is invalid
◆ hasResources()
bool retdec::fileformat::ResourceTable::hasResources |
( |
| ) |
const |
Find out if there are any resources
- Returns
true
if there are some resources, false
otherwise
◆ hasResourceWithLanguage() [1/2]
bool retdec::fileformat::ResourceTable::hasResourceWithLanguage |
( |
const std::string & |
rLan | ) |
const |
Check if resource with language rLan exists
- Parameters
-
- Returns
true
if has resource with language rLan, false
otherwise
◆ hasResourceWithLanguage() [2/2]
bool retdec::fileformat::ResourceTable::hasResourceWithLanguage |
( |
std::size_t |
rId | ) |
const |
Check if resource with language ID rId exists
- Parameters
-
rId | Language ID of resource |
- Returns
true
if has resource with language ID rId, false
otherwise
◆ hasResourceWithName() [1/2]
bool retdec::fileformat::ResourceTable::hasResourceWithName |
( |
const std::string & |
rName | ) |
const |
Check if resource with name rName exists
- Parameters
-
- Returns
true
if has resource with name rName, false
otherwise
◆ hasResourceWithName() [2/2]
bool retdec::fileformat::ResourceTable::hasResourceWithName |
( |
std::size_t |
rId | ) |
const |
Check if resource with name ID rId exists
- Parameters
-
- Returns
true
if has resource with name ID rId, false
otherwise
◆ hasResourceWithType() [1/2]
bool retdec::fileformat::ResourceTable::hasResourceWithType |
( |
const std::string & |
rType | ) |
const |
Check if resource with type rType exists
- Parameters
-
- Returns
true
if has resource with type rType, false
otherwise
◆ hasResourceWithType() [2/2]
bool retdec::fileformat::ResourceTable::hasResourceWithType |
( |
std::size_t |
rId | ) |
const |
Check if resource with type ID rId exists
- Parameters
-
- Returns
true
if has resource with type ID rId, false
otherwise
◆ linkResourceIconGroups()
void retdec::fileformat::ResourceTable::linkResourceIconGroups |
( |
| ) |
|
Link resource icon group with referenced icons and set icon properties
◆ parseStringFileInfoChild()
bool retdec::fileformat::ResourceTable::parseStringFileInfoChild |
( |
const std::vector< std::uint8_t > & |
bytes, |
|
|
std::size_t & |
offset |
|
) |
| |
|
private |
Parse StringFileInfo child
- Parameters
-
bytes | Resource bytes |
offset | Offset to structure |
- Returns
true
if parsing was successful, false
otherwise
◆ parseVarFileInfoChild()
bool retdec::fileformat::ResourceTable::parseVarFileInfoChild |
( |
const std::vector< std::uint8_t > & |
bytes, |
|
|
std::size_t & |
offset |
|
) |
| |
|
private |
Parse VarFileInfo structure
- Parameters
-
bytes | Resource bytes |
offset | Offset to structure |
- Returns
true
if parsing was successful, false
otherwise
◆ parseVarString()
bool retdec::fileformat::ResourceTable::parseVarString |
( |
const std::vector< std::uint8_t > & |
bytes, |
|
|
std::size_t & |
offset |
|
) |
| |
|
private |
Parse var string
- Parameters
-
bytes | Resource bytes |
offset | Offset to structure |
- Returns
true
if parsing was successful, false
otherwise
◆ parseVersionInfo()
bool retdec::fileformat::ResourceTable::parseVersionInfo |
( |
const std::vector< std::uint8_t > & |
bytes | ) |
|
|
private |
Parse version information
- Parameters
-
- Returns
true
if parsing was successful, false
otherwise
◆ parseVersionInfoChild()
bool retdec::fileformat::ResourceTable::parseVersionInfoChild |
( |
const std::vector< std::uint8_t > & |
bytes, |
|
|
std::size_t & |
offset |
|
) |
| |
|
private |
Parse Version Info child
- Parameters
-
bytes | Resource bytes |
offset | Offset to Version Info Child structure |
- Returns
true
if parsing was successful, false
otherwise
◆ parseVersionInfoResources()
void retdec::fileformat::ResourceTable::parseVersionInfoResources |
( |
| ) |
|
Parse all version information resources
◆ iconGroups
◆ iconHashCrc32
std::string retdec::fileformat::ResourceTable::iconHashCrc32 |
|
private |
◆ iconHashMd5
std::string retdec::fileformat::ResourceTable::iconHashMd5 |
|
private |
◆ iconHashSha256
std::string retdec::fileformat::ResourceTable::iconHashSha256 |
|
private |
◆ iconPerceptualAvgHash
std::string retdec::fileformat::ResourceTable::iconPerceptualAvgHash |
|
private |
icon perceptual hash AvgHash
◆ icons
std::vector<ResourceIcon *> retdec::fileformat::ResourceTable::icons |
|
private |
◆ languages
std::vector<std::pair<std::string, std::string> > retdec::fileformat::ResourceTable::languages |
|
private |
supported languages, LCID and code page
◆ resourceVersions
std::vector<Resource *> retdec::fileformat::ResourceTable::resourceVersions |
|
private |
◆ strings
std::vector<std::pair<std::string, std::string> > retdec::fileformat::ResourceTable::strings |
|
private |
◆ table
std::vector<std::unique_ptr<Resource> > retdec::fileformat::ResourceTable::table |
|
private |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/resource_table/resource_table.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/resource_table/resource_table.cpp