LibUsbDotNet 2.2.8
GetIsoPacketBuffer Method (packet)
Library Reference ► MonoLibUsb.Transfer ► MonoUsbTransfer ► GetIsoPacketBuffer(Int32)
|
![]() |
Convenience function to locate the position of an isochronous packet within the buffer of an isochronous transfer.


- packet (Int32)
- The packet to return the address of.

the base address of the packet buffer inside the transfer buffer.

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 GetIsoPacketBufferSimple(Int32) instead.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | This exception is thrown if the packet requested is >= NumIsoPackets. |