public DoubleBuffer put ( double [ ] src , int off , int len ) { int length = src . length ; if ( off < 0 || len < 0 || ( long ) off + ( long ) len > length ) { throw new IndexOutOfBoundsException ( ) ; } if ( len > remaining ( ) ) { throw new BufferOverflowException ( ) ; } for ( int i = off ; i < off + len ; i ++ ) { put ( src [ i ] ) ; } return this ; }
Writes doubles from the given double array starting from the specified offset to the current position and increases the position by the number of doubles written .