Allocate a transfer with the given number of isochronous packets and apply
the function to the resulting pointer. The transfer is automatically freed
when the function terminates (whether normally or by raising an exception).

Create a FunPtr to the given transfer callback function and pass it to
the continuation function. The FunPtr is automatically freed when the
continuation terminates (whether normally or by raising an exception).