#include <ResourceDirectory.h>
Inheritance diagram for ResourceLeaf:


Public Member Functions | |
| dword | getCodePage () const |
| Returns the CodePage value of this resource leaf. | |
| std::vector< byte > | getData () const |
| Returns the resource data of this resource leaf. | |
| dword | getOffsetToData () const |
| Returns the OffsetToData value of this resource leaf. | |
| dword | getReserved () const |
| Returns the Reserved value of this resource leaf. | |
| dword | getSize () const |
| Returns the Size value of this resource leaf. | |
| bool | isLeaf () const |
| Indicates if the resource element is a leaf or a node. | |
| void | makeValid () |
| Corrects erroneous valeus in the ResourceLeaf. | |
| void | setCodePage (dword dwValue) |
| Sets the CodePage value of this resource leaf. | |
| void | setData (const std::vector< byte > &vData) |
| Sets the resource data of this resource leaf. | |
| void | setOffsetToData (dword dwValue) |
| Sets the OffsetToData value of this resource leaf. | |
| void | setReserved (dword dwValue) |
| Sets the Reserved value of this resource leaf. | |
| void | setSize (dword dwValue) |
| Sets the Size value of this resource leaf. | |
Protected Member Functions | |
| int | read (InputBuffer &inpBuffer, unsigned int uiOffset, unsigned int rva) |
| void | rebuild (OutputBuffer &, unsigned int &uiOffset, unsigned int uiRva, const std::string &) const |
| Writes the next resource leaf into the OutputBuffer. | |
Private Attributes | |
| PELIB_IMAGE_RESOURCE_DATA_ENTRY | entry |
| PeLib equivalent of the Win32 structure IMAGE_RESOURCE_DATA_ENTRY. | |
| std::vector< byte > | m_data |
| The resource data. | |
|
|
Returns the CodePage value of this resource leaf. Returns the leaf's CodePage value.
|
|
|
Returns the resource data of this resource leaf. Reads the next resource leaf from the InputBuffer. Returns the size of a resource lead. |
|
|
Returns the OffsetToData value of this resource leaf. Returns the leaf's OffsetToData value. That's the RVA where the raw data of the resource can be found.
|
|
|
Returns the Reserved value of this resource leaf. Returns the leaf's Reserved value.
|
|
|
Returns the Size value of this resource leaf. Returns the leaf's Size value. That's the size of the raw data of the resource.
|
|
|
Indicates if the resource element is a leaf or a node. Checks if a ResourceElement is a leaf or not.
Implements ResourceElement. |
|
||||||||||||||||
|
Reads the next resource leaf from the InputBuffer.
Implements ResourceElement. |
|
||||||||||||||||||||
|
Writes the next resource leaf into the OutputBuffer. Rebuilds the current resource leaf.
Implements ResourceElement. |
|
|
Sets the CodePage value of this resource leaf. Sets the leaf's CodePage value.
|
|
|
Sets the resource data of this resource leaf. Overwrites the raw data of a resource.
|
|
|
Sets the OffsetToData value of this resource leaf. Sets the leaf's OffsetToData value.
|
|
|
Sets the Reserved value of this resource leaf. Sets the leaf's Reserved value.
|
|
|
Sets the Size value of this resource leaf. Sets the leaf's Size value.
|
1.3.7