public void setBuffer ( long address , long length , int index ) { if ( ( index < 0 ) || ( index >= this . bufferCount ) ) { throw new IllegalArgumentException ( ) ; } this . stagingByteBuffer . putLong ( ( FIRST_BUFFER_INDEX + ( 2 * index ) ) * 8 , address ) ; this . stagingByteBuffer . putLong ( ( FIRST_BUFFER_INDEX + ( 2 * index ) + 1 ) * 8 , length ) ; }
Sets the address and length of a buffer with a specified index .