private void prepareTransfers() throws LibUsbException {
  if (mAvailableTransfers == null) {
    mAvailableTransfers=new LinkedTransferQueue<>();
    for (int x=0; x < TRANSFER_BUFFER_POOL_SIZE; x++) {
      Transfer transfer=LibUsb.allocTransfer();
      if (transfer == null) {
        throw new LibUsbException("couldn't allocate transfer",LibUsb.ERROR_NO_MEM);
      }
      final ByteBuffer buffer=ByteBuffer.allocateDirect(mBufferSize);
      LibUsb.fillBulkTransfer(transfer,mDeviceHandle,USB_ENDPOINT,buffer,BufferProcessor.this,"Buffer",USB_TIMEOUT_MS);
      mAvailableTransfers.add(transfer);
    }
  }
}

private void prepareTransfers ( ) throws LibUsbException { if ( mAvailableTransfers == null ) { mAvailableTransfers = new LinkedTransferQueue < > ( ) ; for ( int x = 0 ; x < TRANSFER_BUFFER_POOL_SIZE ; x ++ ) { Transfer transfer = LibUsb . allocTransfer ( ) ; if ( transfer == null ) { throw new LibUsbException ( "couldn't allocate transfer" , LibUsb . ERROR_NO_MEM ) ; } final ByteBuffer buffer = ByteBuffer . allocateDirect ( mBufferSize ) ; LibUsb . fillBulkTransfer ( transfer , mDeviceHandle , USB_ENDPOINT , buffer , BufferProcessor . this , "Buffer" , USB_TIMEOUT_MS ) ; mAvailableTransfers . add ( transfer ) ; } } }
prepares ( allocates ) a set of transfer buffers for use in transferring data from the tuner via the bulk interface
