|
KittyMemoryEx 1.0.0
Dedicated library for runtime code patching, memory scanning, tracing, injection and some more useful memory utilities. works for both Android and Linux
|
Provides general utility functions. More...
Namespaces | |
| namespace | Path |
| Provides utility functions for paths. | |
| namespace | String |
| Provides utility functions for strings. | |
| namespace | Data |
| Provides utility functions for data. | |
| namespace | Zip |
| Provides utility functions for handling ZIP files. | |
Classes | |
| class | KTScopedFD |
| RAII for file descriptor. More... | |
| class | KTScopedMMap |
| RAII for file descriptor. More... | |
Functions | |
| uintptr_t | untagPointer (uintptr_t ptr) |
| Removes AArch64 top-byte pointer tags from an address. | |
| template<typename T> | |
| T * | untagPointer (T *ptr) |
| template<typename T> | |
| const T * | untagPointer (const T *ptr) |
| template<typename T> | |
| T | randInt (T min, T max) |
| Generates a random number of type T within a specified range. | |
| std::vector< uint8_t > | randomBytes (std::size_t length) |
| Generates a random bytes of a specified length. | |
| std::string | randomString (size_t length) |
| Generates a random string of a specified length. | |
Provides general utility functions.
| T KittyUtils::randInt | ( | T | min, |
| T | max ) |
Generates a random number of type T within a specified range.
| T | The type of the number. |
| min | The minimum range. |
| min | The maximum range. |
| std::vector< uint8_t > KittyUtils::randomBytes | ( | std::size_t | length | ) |
Generates a random bytes of a specified length.
| length | The length of the random bytes to generate. |
| std::string KittyUtils::randomString | ( | size_t | length | ) |
Generates a random string of a specified length.
| length | The length of the random string to generate. |
|
inline |
Removes AArch64 top-byte pointer tags from an address.
On Android ARM64 systems, pointers may contain TBI/MTE tag bits in the top byte. This function removes those bits and returns the canonical virtual address suitable for comparisons against /proc/self/maps ranges.
| ptr | Address value to untag. |
| ptr | Pointer value to untag. |
| ptr | Const pointer value to untag. |
