From 02c9b2899156c757c9c38eb2dfed2ef0fa137444 Mon Sep 17 00:00:00 2001 From: serr Date: Wed, 15 Jan 2025 19:00:16 +0300 Subject: [PATCH] update comments --- analysis_function.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/analysis_function.h b/analysis_function.h index 424735b..6b31c2e 100644 --- a/analysis_function.h +++ b/analysis_function.h @@ -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);