#include <RelocationsDirectory.h>
Public Member Functions | |
void | addRelocationData (unsigned int ulRelocation, word wValue) |
Adds new data to a relocation. | |
unsigned int | getNumberOfRelocationData (unsigned int ulRelocation) const |
Returns the number of relocation data entries of a specific relocation. | |
unsigned int | getNumberOfRelocations () const |
Returns the number of relocations in the relocations directory. | |
word | getRelocationData (unsigned int ulRelocation, unsigned int ulDataNumber) const |
Returns the RelocationData of a relocation. | |
dword | getSizeOfBlock (unsigned int ulRelocation) const |
Returns the SizeOfBlock value of a relocation. | |
dword | getVirtualAddress (unsigned int ulRelocation) const |
Returns the VA of a relocation. | |
int | read (const std::string &strFilename, unsigned int uiOffset, unsigned int uiSize) |
Read a file's relocations directory. | |
void | rebuild (std::vector< byte > &vBuffer) const |
Rebuilds the relocations directory. | |
void | removeRelocationData (unsigned int ulRelocation, word wValue) |
Removes data from a relocation. | |
void | setRelocationData (unsigned int ulRelocation, unsigned int ulDataNumber, word wData) |
Changes the relocation data of a relocation. | |
void | setSizeOfBlock (unsigned int ulRelocation, dword dwValue) |
Changes the SizeOfBlock of a relocation. | |
void | setVirtualAddress (unsigned int ulRelocation, dword dwValue) |
Changes the VirtualAddress of a relocation. | |
unsigned int | size () const |
Returns the size of the relocations directory. | |
int | write (const std::string &strFilename, unsigned int dwOffset) const |
Writes the relocations directory to a file. | |
Private Attributes | |
std::vector< IMG_BASE_RELOC > | m_vRelocations |
Used to store the relocation data. |
This class handles the relocations directory.