arrayCloneBytes -> copyBytes

This commit is contained in:
nathan 2014-10-02 01:44:36 +02:00
parent 10a2fa5656
commit c01411ac52

View File

@ -244,11 +244,11 @@ public class Sys {
return baos.toByteArray(); return baos.toByteArray();
} }
public static final byte[] arrayCloneBytes(byte[] src) { public static final byte[] copyBytes(byte[] src) {
return arrayCloneBytes(src, 0); return copyBytes(src, 0);
} }
public static final byte[] arrayCloneBytes(byte[] src, int position) { public static final byte[] copyBytes(byte[] src, int position) {
int length = src.length - position; int length = src.length - position;
byte[] b = new byte[length]; byte[] b = new byte[length];