List of utility methods to do Byte Array Clone
byte[] | clone(byte[] array) clone if (array == null) { return null; byte[] result = new byte[array.length]; System.arraycopy(array, 0, result, 0, array.length); return result; |
byte[] | cloneByteArray(byte[] b) Create a new byte array and copy all the data. if (b == null) { return null; int len = b.length; if (len == 0) { return b; byte[] copy = new byte[len]; ... |