How to convert function to unsigned char array (*void pointer)
I'm sorry if I do not understand correctly what is *void pointer
For example i have functions like this
Example 1
Example 2
Example 3
In short i need univesal method to convert any method(function) to raw data.
I need to save this functions as array or vector of unsigned char.
Someone can help me?
Thank you so much.
I'm sorry if I do not understand correctly what is *void pointer
For example i have functions like this
Example 1
Code
void test(){
std::cout << "Hello" << std::endl;
}Example 2
Code
void test2(int a){
std::cout << "Hello" << std::endl;
std::cout << std::to_string(a) << std::endl;
}Example 3
Code
int test3(int a){
return a;
}In short i need univesal method to convert any method(function) to raw data.
I need to save this functions as array or vector of unsigned char.
Someone can help me?
Thank you so much.

