I want to convert the code from C++ to C#, there is one line code regarding with memcpy
. Not sure how to convert it.
memcpy(Bucket, nBucket, 4 * L);
The original code is from TopCoderForums. I finished most of them except a few lines.
I want to convert the code from C++ to C#, there is one line code regarding with memcpy
. Not sure how to convert it.
memcpy(Bucket, nBucket, 4 * L);
The original code is from TopCoderForums. I finished most of them except a few lines.
In that specific example of code (where Bucket and nBucket are int arrays) here is what you can do in c#:
Array.Copy(nBucket, Bucket, 4 * L)
(Note that I think souce and destination should be swapped around)