libusb_get_iso_packet_buffer

Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer.

This is a thorough function which loops through all preceding packets, accumulating their lengths to find the position of the specified packet. Typically you will assign equal lengths to each packet in the transfer, and hence the above method is sub-optimal. You may wish to use libusb_get_iso_packet_buffer_simple() instead.

\param transfer a transfer \param packet the packet to return the address of \returns the base address of the packet buffer inside the transfer buffer, or NULL if the packet does not exist. \see libusb_get_iso_packet_buffer_simple()

extern (C)
char*
libusb_get_iso_packet_buffer

Meta