retdec
|
#include <resource_table.h>
Public Member Functions | |
Getters | |
std::size_t | getNumberOfResources () const |
std::size_t | getNumberOfLanguages () const |
std::size_t | getNumberOfStrings () const |
std::string | getResourceCrc32 (std::size_t index) const |
std::string | getResourceMd5 (std::size_t index) const |
std::string | getResourceSha256 (std::size_t index) const |
std::string | getResourceIconhashCrc32 () const |
std::string | getResourceIconhashMd5 () const |
std::string | getResourceIconhashSha256 () const |
std::string | getResourceIconPerceptualAvgHash () const |
std::string | getResourceIconPerceptualDCTpHash () const |
const retdec::fileformat::Resource * | getResource (std::size_t position) const |
std::string | getResourceName (std::size_t index) const |
std::string | getResourceType (std::size_t index) const |
std::string | getResourceLanguage (std::size_t index) const |
std::string | getLanguageLcid (std::size_t index) const |
std::string | getLanguageCodePage (std::size_t index) const |
std::string | getStringName (std::size_t index) const |
std::string | getStringValue (std::size_t index) const |
std::string | getResourceNameIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const |
std::string | getResourceTypeIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const |
std::string | getResourceLanguageIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const |
std::string | getResourceSublanguageIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const |
std::string | getResourceOffsetStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const |
std::string | getResourceSizeStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const |
Setters | |
void | setTable (const retdec::fileformat::ResourceTable *resourceTable) |
Other methods | |
bool | hasRecords () const |
Private Attributes | |
const retdec::fileformat::ResourceTable * | table = nullptr |
Class for resource table
Value std::numeric_limits<std::size_t>::max() mean unspecified value or error for numeric types. Methods with index parameters does not perform control of indexes.
std::string retdec::fileinfo::ResourceTable::getLanguageCodePage | ( | std::size_t | index | ) | const |
Get code page of supported language
index | Index of selected code page (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getLanguageLcid | ( | std::size_t | index | ) | const |
Get LCID of supported language
index | Index of selected supported language (indexed from 0) |
std::size_t retdec::fileinfo::ResourceTable::getNumberOfLanguages | ( | ) | const |
Get number of supported languages
std::size_t retdec::fileinfo::ResourceTable::getNumberOfResources | ( | ) | const |
Get number of resources in table
std::size_t retdec::fileinfo::ResourceTable::getNumberOfStrings | ( | ) | const |
Get number of strings
const retdec::fileformat::Resource * retdec::fileinfo::ResourceTable::getResource | ( | std::size_t | position | ) | const |
Get resource
position | Index of selected resource from table (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceCrc32 | ( | std::size_t | index | ) | const |
Get CRC32 of selected resource
index | Index of selected resource (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceIconhashCrc32 | ( | ) | const |
Get iconhash as CRC32
std::string retdec::fileinfo::ResourceTable::getResourceIconhashMd5 | ( | ) | const |
Get iconhash as MD5
std::string retdec::fileinfo::ResourceTable::getResourceIconhashSha256 | ( | ) | const |
Get iconhash as SHA256
std::string retdec::fileinfo::ResourceTable::getResourceIconPerceptualAvgHash | ( | ) | const |
Get icon perceptual hash as AvgHash
std::string retdec::fileinfo::ResourceTable::getResourceIconPerceptualDCTpHash | ( | ) | const |
std::string retdec::fileinfo::ResourceTable::getResourceLanguage | ( | std::size_t | index | ) | const |
Get language of selected resource
index | Index of selected resource (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceLanguageIdStr | ( | std::size_t | index, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get language ID of selected resource
index | Index of selected resource (indexed from 0) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::ResourceTable::getResourceMd5 | ( | std::size_t | index | ) | const |
Get MD5 of selected resource
index | Index of selected resource (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceName | ( | std::size_t | index | ) | const |
Get name of selected resource
index | Index of selected resource (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceNameIdStr | ( | std::size_t | index, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get name ID of selected resource
index | Index of selected resource (indexed from 0) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::ResourceTable::getResourceOffsetStr | ( | std::size_t | index, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get offset of selected resource
index | Index of selected resource (indexed from 0) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::ResourceTable::getResourceSha256 | ( | std::size_t | index | ) | const |
Get SHA256 of selected resource
index | Index of selected resource (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceSizeStr | ( | std::size_t | index, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get size of selected resource
index | Index of selected resource (indexed from 0) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::ResourceTable::getResourceSublanguageIdStr | ( | std::size_t | index, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get sublanguage ID of selected resource
index | Index of selected resource (indexed from 0) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::ResourceTable::getResourceType | ( | std::size_t | index | ) | const |
Get type of selected resource
index | Index of selected resource (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getResourceTypeIdStr | ( | std::size_t | index, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get type ID of selected resource
index | Index of selected resource (indexed from 0) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::ResourceTable::getStringName | ( | std::size_t | index | ) | const |
Get name of selected string
index | Index of selected string (indexed from 0) |
std::string retdec::fileinfo::ResourceTable::getStringValue | ( | std::size_t | index | ) | const |
Get value of selected string
index | Index of selected string (indexed from 0) |
bool retdec::fileinfo::ResourceTable::hasRecords | ( | ) | const |
Find out if there are any resources
true
if there are some resources, false
otherwise void retdec::fileinfo::ResourceTable::setTable | ( | const retdec::fileformat::ResourceTable * | resourceTable | ) |
Set resource table data
resourceTable | Instance of class with original information about resource table |
|
private |