Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

static float [] javazoom::jl::decoder::SynthesisFilter::subArray ( final float[]  array,
final int  offs,
int  len 
) [inline, static, private]

Returns a subarray of an existing array.

array The array to retrieve a subarra from.
offs The offset in the array that corresponds to the first index of the subarray.
len The number of indeces in the subarray.
The subarray, which may be of length 0.

Definition at line 1663 of file SynthesisFilter.java.

Referenced by splitArray().

            if (offs+len > array.length)
                  len = array.length-offs;
            if (len < 0)
                  len = 0;
            float[] subarray = new float[len];
            for (int i=0; i<len; i++)
                  subarray[i] = array[offs+i];
            return subarray;

Generated by  Doxygen 1.6.0   Back to index