public static void arraycopy(byte src,
This is really a debugging version of System.arraycopy().
Use it to provide better exception messages when copying arrays around.
For production use it's better to use the original for speed.
public static void arrayMoveWithin(Object array,
Moves a number of entries in an array to another point in the array,
shifting those inbetween as required.
array - The array to alter
moveFrom - The (0 based) index of the first entry to move
moveTo - The (0 based) index of the positition to move to
numToMove - The number of entries to move
public static byte copyOf(byte source,
Copies the specified array, truncating or padding with zeros (if
necessary) so the copy has the specified length. This method is temporary
replace for Arrays.copyOf() until we start to require JDK 1.6.
source - the array to be copied
newLength - the length of the copy to be returned
a copy of the original array, truncated or padded with zeros to
obtain the specified length
public static <T> T copyOf(T source,
Copies the specified array into specified result array, truncating or
padding with zeros (if necessary) so the copy has the specified length.
This method is temporary replace for Arrays.copyOf() until we start to
require JDK 1.6.
public static byte copyOfRange(byte original,
Copies the specified range of the specified array into a new array.
The initial index of the range (from) must lie between zero
and original.length, inclusive. The value at
original[from] is placed into the initial element of the copy
(unless from == original.length or from == to).
Values from subsequent elements in the original array are placed into
subsequent elements in the copy. The final index of the range
(to), which must be greater than or equal to from,
may be greater than original.length, in which case
(byte)0 is placed in all elements of the copy whose index is
greater than or equal to original.length - from. The length
of the returned array will be to - from.
This method is temporary
replace for Arrays.copyOfRange() until we start to require JDK 1.6.
original - the array from which a range is to be copied
from - the initial index of the range to be copied, inclusive
to - the final index of the range to be copied, exclusive.
(This index may lie outside the array.)
a new array containing the specified range from the original array,
truncated or padded with zeros to obtain the required length