Esempio n. 1
0
 /// <summary>
 /// Frees this transfer.
 /// </summary>
 ///<remarks>
 /// <note title="Libusb-1.0 API Note:" type="cpp">
 /// <see cref="Free"/> is roughly equivalent to
 /// <a href="http://libusb.sourceforge.net/api-1.0/group__asyncio.html#ga6ab8b2cff4de9091298a06b2f4b86cd6">libusb_free_transfer()</a>.
 /// </note>
 /// <note type="warning">
 /// Calling <see cref="Free"/> on a transfer that has already been freed will result in a double free.
 /// </note>
 /// </remarks>
 public void Free()
 {
     if (handle != IntPtr.Zero)
     {
         MonoUsbApi.FreeTransfer(handle);
         handle = IntPtr.Zero;
     }
 }