private static void checkOffsetAndCount ( final int length , final int offset , final int count ) { if ( offset < 0 || count < 0 || offset + count > length ) { throw new IndexOutOfBoundsException ( ) ; } }
Validates the offset and the byte count for the given array length .