public Bytes subSequence ( int start , int end ) { if ( start > end || start < 0 || end > length ) { throw new IndexOutOfBoundsException ( "Bad start and/end start = " + start + " end=" + end + " offset=" + offset + " length=" + length ) ; } return new Bytes ( data , offset + start , end - start ) ; }
Returns a portion of the Bytes object