Java Array Sub Array subset(byte[] array, int start, int length)

Here you can find the source of subset(byte[] array, int start, int length)

Description

subset

License

Open Source License

Declaration

public static byte[] subset(byte[] array, int start, int length) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU Lesser General Public License as published by

public class Main {
    public static byte[] subset(byte[] array, int start, int length) {
        byte[] result = new byte[length];
        System.arraycopy(array, start, result, 0, length);
        return result;
    }/*from ww w  .  j av  a  2 s .  c  o m*/
}

Related

  1. subarrayEquals(int[] array, int[] subarray, int startIndex)
  2. subarrayOf(final String[] array, final int start, final int end)
  3. subByteArray(byte[] array, int offset, int length)
  4. subset(boolean[] array, int start, int end)
  5. subset(byte[] a, int begin_index, int len)
  6. subset(final char[] array, final int start, final int length)
  7. subset(int start, int count, byte[] source)
  8. subset(String[] array, int starting, int width)
  9. subset(String[] in, int begin)