|
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
|
Namespace containing utility functions for asm instructions. More...
Functions | |
| uint32_t | bits (uint32_t v, int hi, int lo) |
| Extracts a bit value from a 32-bit unsigned integer. | |
| bool | bit (uint32_t v, int pos) |
| Checks if a specific bit is set in a 32-bit unsigned integer. | |
| uint8_t | ror8 (uint8_t value, unsigned int shift) |
| Rotates an 8-bit unsigned integer to the right by a specified amount. | |
| uint8_t | rol8 (uint8_t value, unsigned int shift) |
| Rotates an 8-bit unsigned integer to the left by a specified amount. | |
| uint16_t | ror16 (uint16_t value, unsigned int shift) |
| Rotates a 16-bit unsigned integer to the right by a specified amount. | |
| uint16_t | rol16 (uint16_t value, unsigned int shift) |
| Rotates a 16-bit unsigned integer to the left by a specified amount. | |
| uint32_t | ror32 (uint32_t value, unsigned int shift) |
| Rotates a 32-bit unsigned integer to the right by a specified amount. | |
| uint32_t | rol32 (uint32_t value, unsigned int shift) |
| Rotates a 32-bit unsigned integer to the left by a specified amount. | |
| uint64_t | ror64 (uint64_t value, unsigned int shift) |
| Rotates a 64-bit unsigned integer to the right by a specified amount. | |
| uint64_t | rol64 (uint64_t value, unsigned int shift) |
| Rotates a 64-bit unsigned integer to the left by a specified amount. | |
| uint16_t | swap16 (uint16_t value) |
| Reverses the byte order of a 16-bit unsigned integer. | |
| uint32_t | swap32 (uint32_t value) |
| Reverses the byte order of a 32-bit unsigned integer. | |
| uint64_t | swap64 (uint64_t value) |
| Reverses the byte order of a 64-bit unsigned integer. | |
| std::string | toHexString (uint64_t v) |
| Formats a value as a "0x"-prefixed, upper-case hex string. | |
Namespace containing utility functions for asm instructions.
This namespace provides utility functions for decoding instructions,
|
inline |
Checks if a specific bit is set in a 32-bit unsigned integer.
| v | The input 32-bit unsigned integer. |
| pos | The bit position to check. |

| uint32_t KittyAsm::bits | ( | uint32_t | v, |
| int | hi, | ||
| int | lo ) |
Extracts a bit value from a 32-bit unsigned integer.
| v | The input 32-bit unsigned integer. |
| hi | The high bit position (inclusive). |
| lo | The low bit position (inclusive). |

|
inline |
Rotates a 16-bit unsigned integer to the left by a specified amount.
| value | The input 16-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates a 32-bit unsigned integer to the left by a specified amount.
| value | The input 32-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates a 64-bit unsigned integer to the left by a specified amount.
| value | The input 64-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates an 8-bit unsigned integer to the left by a specified amount.
| value | The input 8-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates a 16-bit unsigned integer to the right by a specified amount.
| value | The input 16-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates a 32-bit unsigned integer to the right by a specified amount.
| value | The input 32-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates a 64-bit unsigned integer to the right by a specified amount.
| value | The input 64-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Rotates an 8-bit unsigned integer to the right by a specified amount.
| value | The input 8-bit unsigned integer. |
| shift | The number of bits to rotate. |
|
inline |
Reverses the byte order of a 16-bit unsigned integer.
| value | The input 16-bit unsigned integer. |
|
inline |
Reverses the byte order of a 32-bit unsigned integer.
| value | The input 32-bit unsigned integer. |
|
inline |
Reverses the byte order of a 64-bit unsigned integer.
| value | The input 64-bit unsigned integer. |
|
inline |
Formats a value as a "0x"-prefixed, upper-case hex string.
The one place both architectures' ToString() render an address or immediate, so a caller reading disassembly text sees one hex convention rather than whatever each call site happened to write.