How can function like this be obtained?
I have been provided a source to work with. And what it does is it patches a raw binary file.
I looked at the source and there is this function which can patch a float, byte or dword to an address. But the source for it is missing. My question is how can I make this function again?
I know it uses some operator overloading function and it can easily patch the variable and the exact size we would want. But I searched the net for every references but all has been in vain. So can you please help me out to recreate this function?
My interpretation of it prototype: