Java Array Range 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;
//License from project: Apache License 

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;
    }//w  w w  .  ja va 2 s .c  o m
}

Related

  1. copyOf(Object[] values, int nlen)
  2. copyOf(String[] data, int newLength)
  3. copyOf(String[] original, int newLength)
  4. copyOf(T[] oriArray, int newArraySize, int startOffset)
  5. copyOfArray(int[] a)
  6. copyOfRange(byte[] original, int from, int to)
  7. copyOfRange(byte[] original, int from, int to)
  8. copyOfRange(byte[] original, int from, int to)
  9. copyOfRange(byte[] original, int from, int to)