List of utility methods to do Byte Array Copy
void | copyBytesWithin(byte[] bytes, int target, int start, int end) copy Bytes Within System.arraycopy(bytes, start, bytes, target, end - start); |
void | memcpy(byte[] dest, int doff, byte[] src, int soff, int len) memcpy for (int i = 0; i < len; i++) { dest[doff + i] = src[soff + i]; |
void | memcpy(byte[] destBytes, byte[] srcBytes, int numBytes) memcpy for (int i = 0; i < numBytes; i++) { destBytes[i] = srcBytes[i]; |
int | memcpy(byte[] dst, int dst_offset, byte[] src, int src_offset, int length) Copy contents of one array of bytes into another.
if ((dst != null) && (src != null)) { if (dst.length < (dst_offset + length)) { croak("dst.length = " + dst.length + ", but " + "dst_offset = " + dst_offset + " and length = " + length + "."); if (src.length < (src_offset + length)) { croak("src.length = " + src.length + ", but " + "src_offset = " + src_offset + " and length = " + length + "."); ... |
void | memcpy(Object to, Object from, int size) MEMORY System.arraycopy(from, 0, to, 0, size); |