the main class responsible for recomposition
More...
#include <recomp.hpp>
the main class responsible for recomposition
Definition at line 64 of file recomp.hpp.
◆ recomp_t()
the explicit constructor for the recomp_t class.
- Parameters
-
dcmp | pointer to a decomp_t class. |
alloc | lambda function which is used to allocate memory for symbols. |
copy | lambda function used to copy bytes into allocations. |
resolve | lambda function used to resolve external symbols. |
◆ allocate()
void theo::recomp::recomp_t::allocate |
( |
| ) |
|
when called, this function allocates space for every symbol.
◆ allocator()
void theo::recomp::recomp_t::allocator |
( |
allocator_t |
alloc | ) |
|
setter for the allocater lambda function.
- Parameters
-
alloc | lambda function which allocates memory for symbols. |
◆ copier()
void theo::recomp::recomp_t::copier |
( |
copier_t |
copy | ) |
|
setter for the copier lambda function.
- Parameters
-
copy | copier lambda function used to copy bytes into allocations made by the allocator. |
◆ copy_syms()
void theo::recomp::recomp_t::copy_syms |
( |
| ) |
|
when called, this function copies symbols into allocations.
◆ resolve() [1/2]
void theo::recomp::recomp_t::resolve |
( |
| ) |
|
when called, this function resolves all relocations in every symbol.
◆ resolve() [2/2]
std::uintptr_t theo::recomp::recomp_t::resolve |
( |
const std::string && |
sym | ) |
|
resolves the address of a function given its name.
- Parameters
-
sym | the name of the symbol to resolve the location of. |
- Returns
- the address of the symbol.
◆ resolver()
void theo::recomp::recomp_t::resolver |
( |
resolver_t |
resolve | ) |
|
setter for the resolve lambda function.
- Parameters
-
resolve | lambda function to resolve external symbols. |
The documentation for this class was generated from the following file: