update comments
parent
2810b887a9
commit
02c9b28991
|
@ -7,6 +7,7 @@
|
|||
|
||||
typedef unsigned char byte;
|
||||
|
||||
// Returns the real address of the passed function
|
||||
byte* AF_address(byte* f) {
|
||||
byte* real_address = NULL;
|
||||
#ifdef _MSC_VER // MSVC
|
||||
|
@ -23,14 +24,14 @@ byte* AF_address(byte* f) {
|
|||
return real_address;
|
||||
}
|
||||
|
||||
// Print bytes from address to address+size
|
||||
// Print bytes from address to address+size (Use AF_address to get function ptr)
|
||||
int32_t AF_print_bytes(byte* a, int32_t size) {
|
||||
for (int32_t i = 0; i < size; ++i) {
|
||||
printf("%02X ", *(a + i));
|
||||
}
|
||||
}
|
||||
|
||||
// Get any function size
|
||||
// Get any function size (Use AF_address to get function ptr)
|
||||
int32_t AF_size(byte* f) {
|
||||
byte* p = f;
|
||||
for (; *p != RET; ++p);
|
||||
|
|
Loading…
Reference in New Issue