Memory copy on the device? Is it possible?

Is there a device function that allows me to copy memory within a kernel, on the device? Something like:

Type *a, *b;

memcpy(a,b,1000);

?

From the device? No.