javazoom.jl.decoder.CircularByteBuffer.GetRange C# (CSharp) Method

GetRange() public method

Returns a range (in terms of Offsets) in an int array in chronological (oldest-to-newest) order. e.g. (3, 0) returns the last four ints pushed, with result[3] being the most recent.
public GetRange ( int str, int stp ) : byte[]
str int
stp int
return byte[]
        public byte[] GetRange(int str, int stp)
        {
            byte[]outByte = new byte[str-stp+1];

            for(int i=str,j=0;i>=stp;i--,j++)
            {
                outByte[j] = this[i];
            }

            return outByte;
        }