retdec
|
#include <resource_icon_group.h>
Public Member Functions | |
Getters | |
std::size_t | getNumberOfIcons () const |
const ResourceIcon * | getIcon (std::size_t iIndex) const |
const ResourceIcon * | getPriorIcon () const |
std::size_t | getIconGroupID () const |
Getters of icon group content | |
bool | getNumberOfEntries (std::size_t &nEntries) const |
bool | getEntryNameID (std::size_t eIndex, std::size_t &nameID) const |
bool | getEntryWidth (std::size_t eIndex, std::uint16_t &width) const |
bool | getEntryHeight (std::size_t eIndex, std::uint16_t &height) const |
bool | getEntryIconSize (std::size_t eIndex, std::size_t &iconSize) const |
bool | getEntryColorCount (std::size_t eIndex, std::uint8_t &colorCount) const |
bool | getEntryPlanes (std::size_t eIndex, std::uint16_t &planes) const |
bool | getEntryBitCount (std::size_t eIndex, std::uint16_t &bitCount) const |
Setters | |
void | setIconGroupID (std::size_t id) |
Other methods | |
bool | hasIcons () const |
void | addIcon (ResourceIcon *icon) |
![]() | |
std::string | getCrc32 () const |
std::string | getMd5 () const |
std::string | getSha256 () const |
std::string | getName () const |
std::string | getType () const |
std::string | getLanguage () const |
const llvm::StringRef | getBytes (std::size_t sOffset=0, std::size_t sSize=0) const |
std::size_t | getOffset () const |
std::size_t | getSizeInFile () const |
std::size_t | getLoadedSize () const |
bool | getNameId (std::size_t &rId) const |
bool | getTypeId (std::size_t &rId) const |
bool | getLanguageId (std::size_t &rId) const |
bool | getSublanguageId (std::size_t &rId) const |
bool | getBits (std::string &sResult) const |
bool | getBytes (std::vector< unsigned char > &sResult, std::size_t sOffset=0, std::size_t sSize=0) const |
bool | getString (std::string &sResult, std::size_t sOffset=0, std::size_t sSize=0) const |
bool | getHexBytes (std::string &sResult) const |
void | setName (std::string rName) |
void | setType (std::string rType) |
void | setLanguage (std::string rLan) |
void | setOffset (std::size_t rOffset) |
void | setSizeInFile (std::size_t rSize) |
void | setNameId (std::size_t rId) |
void | setTypeId (std::size_t rId) |
void | setLanguageId (std::size_t rId) |
void | setSublanguageId (std::size_t rId) |
bool | isLoaded () const |
bool | hasValidName () const |
bool | hasValidId () const |
void | invalidateNameId () |
void | invalidateTypeId () |
void | invalidateLanguageId () |
void | invalidateSublanguageId () |
void | load (const FileFormat *rOwner) |
bool | hasCrc32 () const |
bool | hasMd5 () const |
bool | hasSha256 () const |
bool | hasEmptyName () const |
bool | hasEmptyType () const |
bool | hasEmptyLanguage () const |
Private Member Functions | |
Auxiliary methods | |
std::size_t | getEntryOffset (std::size_t eIndex) const |
Private Attributes | |
std::vector< ResourceIcon * > | icons |
stored icons More... | |
size_t | iconGroupID = 0 |
icon group id More... | |
One resource icon
void retdec::fileformat::ResourceIconGroup::addIcon | ( | ResourceIcon * | icon | ) |
Add an icon to the icon group
bool retdec::fileformat::ResourceIconGroup::getEntryBitCount | ( | std::size_t | eIndex, |
std::uint16_t & | bitCount | ||
) | const |
Get entry bit count
eIndex | Index of selected entry (indexed from 0) |
bitCount | Destination for result to be stored |
true
if get was successful, otherwise false bool retdec::fileformat::ResourceIconGroup::getEntryColorCount | ( | std::size_t | eIndex, |
std::uint8_t & | colorCount | ||
) | const |
Get entry color count
eIndex | Index of selected entry (indexed from 0) |
colorCount | Destination for result to be stored |
true
if get was successful, otherwise false bool retdec::fileformat::ResourceIconGroup::getEntryHeight | ( | std::size_t | eIndex, |
std::uint16_t & | height | ||
) | const |
Get entry height
eIndex | Index of selected entry (indexed from 0) |
height | Destination for result to be stored |
true
if get was successful, otherwise false bool retdec::fileformat::ResourceIconGroup::getEntryIconSize | ( | std::size_t | eIndex, |
std::size_t & | iconSize | ||
) | const |
Get entry icon size
eIndex | Index of selected entry (indexed from 0) |
iconSize | Destination for result to be stored |
true
if get was successful, otherwise false bool retdec::fileformat::ResourceIconGroup::getEntryNameID | ( | std::size_t | eIndex, |
std::size_t & | nameID | ||
) | const |
Get entry name ID
eIndex | Index of selected entry (indexed from 0) |
nameID | Destination for result to be stored |
true
if get was successful, otherwise false
|
private |
bool retdec::fileformat::ResourceIconGroup::getEntryPlanes | ( | std::size_t | eIndex, |
std::uint16_t & | planes | ||
) | const |
Get entry planes
eIndex | Index of selected entry (indexed from 0) |
planes | Destination for result to be stored |
true
if get was successful, otherwise false bool retdec::fileformat::ResourceIconGroup::getEntryWidth | ( | std::size_t | eIndex, |
std::uint16_t & | width | ||
) | const |
Get entry width
eIndex | Index of selected entry (indexed from 0) |
width | Destination for result to be stored |
true
if get was successful, otherwise false const ResourceIcon * retdec::fileformat::ResourceIconGroup::getIcon | ( | std::size_t | iIndex | ) | const |
std::size_t retdec::fileformat::ResourceIconGroup::getIconGroupID | ( | ) | const |
Get icon group ID
bool retdec::fileformat::ResourceIconGroup::getNumberOfEntries | ( | std::size_t & | nEntries | ) | const |
Get number of entries
nEntries | Destination for result to be stored |
true
if get was successful, otherwise false std::size_t retdec::fileformat::ResourceIconGroup::getNumberOfIcons | ( | ) | const |
Get number of icons
const ResourceIcon * retdec::fileformat::ResourceIconGroup::getPriorIcon | ( | ) | const |
Get prior icon by Windows OS precedence
bool retdec::fileformat::ResourceIconGroup::hasIcons | ( | ) | const |
A method which indicates whether there are icons present in icon group.
true
if there are, otherwise false
void retdec::fileformat::ResourceIconGroup::setIconGroupID | ( | std::size_t | id | ) |
Set icon group ID
id | Icon group ID |
|
private |
icon group id
|
private |
stored icons