Remember, Java doesn't really allow you to work closely with memory. What memcpy() essentially does is accepts two pointers to memory addresses and then copies memory starting from address b, over to an area starting at address a. Since Java is so high level, there isn't a way to manipulate memory like this. Hence why pointers in C are so powerful and yet, also become such a problem to people who really don't know what they are. [ January 05, 2005: Message edited by: Dean Joness ]
There is a System.arraycopy method that takes two arrays, a start and end point for each and copies the data over. I'm not sure if this is whay you're looking for, but It would be better than looping through a array.
Originally posted by M Burke: Yes, I ended up doing a bunch of string copies. To bad there is no memcpy() in Java like in C
If that's really a problem then you're using the wrong language: use C.
I suspect however it's more the case that you're not yet up to speed with Java and you haven't taken a couple of steps back and asked "what am I actually trying to achieve here" and from there "what's the best way to do that in Java that fits Java's paradigm: not C's".