Memcpy function in c #

Possible duplicate:
C # memcpy equivalent

What is equivalent to function memcpyin C #?

+5
source share
7 answers

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 ...

+5
source

No. C # protects actual memory at several levels of abstraction. However, for some purposes, the interface IClonablemay be useful.

+2
source

() 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);
+2
+2
+1

unsafe . , .

+1

MSDN, byte [] . , , ...

+1

All Articles