a1ien / libusb1-sys

MIT License
13 stars 10 forks source link

libusb_fill_bulk_transfer #19

Closed flukejones closed 3 years ago

flukejones commented 4 years ago

I see libusb_fill_bulk_transfer isn't wrapped here. I'm wondering if we can add it and associated other functions if also missing.

Being able to use libusb_fill_bulk_transfer and libusb_submit_transfer + libusb_alloc_transfer upstream in rusb would make things a lot easier to manage better throughput in transfers.

I found this doc provided some good explanations in a concise way.

a1ien commented 4 years ago

libusb_fill_bulk_transfer is just wrapper that set field you can implement it manual it best way https://github.com/libusb/libusb/blob/da87201f7a5580db16565b1ecc7eefe0fcb5bb59/libusb/libusb.h#L1587

ianrrees commented 3 years ago

+1 for the libusb_fill_*() methods. I understand that they're not difficult to duplicate, but it is surprising they're not available in libusb1-sys despite being part of the libusb API.