code: 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);
      }
docs: Sets the address and length of a buffer with a specified index.
  
  @param address of the buffer
  @param length of the buffer in bytes
  @param index of the buffer to set, where 0 is the first buffer
  @throws IllegalArgumentException if the index value is <0 or >= bufferCount