Android Array Copy copyOfRange(byte[] bytes, int offset, int len)

Here you can find the source of copyOfRange(byte[] bytes, int offset, int len)

Description

copy Of Range

License

Apache License

Declaration

public static byte[] copyOfRange(byte[] bytes, int offset, int len) 

Method Source Code

//package com.java2s;
/**/*www.  j a  va  2 s.c om*/
 * Source obtained from crypto-gwt. Apache 2 License.
 * https://code.google.com/p/crypto-gwt/source/browse/crypto-gwt/src/main/java/com/googlecode/
 * cryptogwt/util/ByteArrayUtils.java
 */

public class Main {
    public static byte[] copyOfRange(byte[] bytes, int offset, int len) {
        byte[] result = new byte[len];
        System.arraycopy(bytes, offset, result, 0, len);
        return result;
    }
}

Related

  1. appendWhereArgsToSelectionArgs( String[] selectionArgs, String[] whereArgs)
  2. arraycopy(String src, int srcOffset, byte[] dst, int dstOffset, int length)
  3. arraycopy(byte[] from, byte[] to)
  4. arrayCopy(byte[] src, int srcPos, byte[] dest, int destPos, int length)
  5. copyOf(byte[] bytes)
  6. copyOfRange(byte[] original, int from, int to)
  7. createCopy(boolean[] array, int dataSize, int newLength)
  8. createCopy(byte[] array, int dataSize, int newLength)
  9. createCopy(char[] array, int dataSize, int newLength)