Java Array Extract arrayExtract(byte[] in, int offset, int len)

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

Description

array Extract

License

Open Source License

Declaration

static public byte[] arrayExtract(byte[] in, int offset, int len) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static public byte[] arrayExtract(byte[] in, int offset, int len) {
        byte[] out = new byte[len];
        System.arraycopy(in, offset, out, 0, len);
        return out;
    }//www.  j ava2 s. co m

    static public void arrayCopy(byte[] dest, int offset, byte[] in) {
        System.arraycopy(in, 0, dest, offset, in.length);
    }
}