Basically, he creates a delegate from his own code for multiplication, and then calls it. Byte arrays are raw instructions that are then pinned into memory, set as executable, and then the delegate itself creates the Marshal.GetDelegateForFunctionPointer .
The conditional statement must use different native code for x86 and x64. I suspect that this will not work when working in Mono on an ARM processor, for example :)
source share