System.arraycopy() vs System.arraymove()
I assume that there is a function arraycopy() in the class java.lang.System. This is a native and efficient function. I do think that behind this navitve function there is a C memcpy() function call.
So with the same idea why there is no System.arraymove() inside the J2SE 5.0 ? And behind this native function we should place a C memmove() function call.
I hope (if it is usefull and relevant) this will be available in JDK 1.5.1....
Best regards.
[473 byte] By [
elmajor] at [2007-9-30 19:23:47]

System.arraycopy() is already done as a memmove(), not as a memcpy():
If the src and dest arguments refer to the same array object, then the copying is
performed as if the components at positions srcPos through srcPos+length-1
were first copied to a temporary array with length components and then the
contents of the temporary array were copied into positions destPos through
destPos+length-1 of the destination array.
So there's no need for an arraymove().