Possible duplicate:C # memcpy equivalent
What is equivalent to function memcpyin C #?
memcpy
As already mentioned, it depends on what you are trying to do ... Therefore, you can consider one of them ... check the links:
There may be other options based on your needs ...
No. C # protects actual memory at several levels of abstraction. However, for some purposes, the interface IClonablemay be useful.
IClonable
() Array.Copy(), , , , :
byte[] array1 = new byte[10] { 1,2,3,4,5,6,7,8,9,10 }; byte[] array2 = new byte[10]; Array.Copy(array1,array2,10);
Buffer.BlockCopy , . , , .
Buffer.BlockCopy
, Array::Copy , ?
Array::Copy
unsafe . , .
unsafe
MSDN, byte [] . , , ...