Convenience function to locate the position of an isochronous packet
within the buffer of an isochronous transfer, for transfers where each
packet is of identical size.
This function relies on the assumption that every packet within the transfer
is of identical size to the first packet. Calculating the location of
the packet buffer is then just a simple calculation:
<tt>buffer + (packet_size * packet)</tt>
Do not use this function on transfers other than those that have identical
packet lengths for each packet.
\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()
Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer, for transfers where each packet is of identical size.
This function relies on the assumption that every packet within the transfer is of identical size to the first packet. Calculating the location of the packet buffer is then just a simple calculation: <tt>buffer + (packet_size * packet)</tt>
Do not use this function on transfers other than those that have identical packet lengths for each packet.
\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()