Java Array Sub Array subarray(byte[] b, int ofs, int len)

Here you can find the source of subarray(byte[] b, int ofs, int len)

Description

subarray

License

Apache License

Declaration

public static byte[] subarray(byte[] b, int ofs, int len) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static byte[] subarray(byte[] b, int ofs, int len) {
        byte[] out = new byte[len];
        System.arraycopy(b, ofs, out, 0, len);
        return out;
    }/*from  ww  w.  j  a va2 s  .c om*/
}

Related

  1. subArray(byte[] array, int beginIndex, int endIndex)
  2. subarray(byte[] array, int offset, int length)
  3. subarray(byte[] array, int startIndexInclusive, int endIndexExclusive)
  4. subarray(byte[] array, int startIndexInclusive, int endIndexExclusive)
  5. subArray(byte[] b, int offset, int length)
  6. subArray(byte[] byteArray, int beginIndex, int length)
  7. subArray(byte[] data, int offset, int length)
  8. subArray(byte[] data, int offset, int length)
  9. subarray(byte[] in, int a, int b)