(self, handle, iso_packets, before_submit, after_completion)
You should not instanciate this class directly.
        Call "getTransfer" method on an USBDeviceHandle instance to get
        instances of this class.
You should not instanciate this class directly.
        Call "getTransfer" method on an USBDeviceHandle instance to get
        instances of this class.
You should not instanciate this class directly . Call getTransfer method on an USBDeviceHandle instance to get instances of this class .
def __init__(self, handle, iso_packets, before_submit, after_completion):
        """
        You should not instanciate this class directly.
        Call "getTransfer" method on an USBDeviceHandle instance to get
        instances of this class.
        """
        if iso_packets < 0:
            raise ValueError('Cannot request a negative number of iso '
                'packets.')
        self.__handle = handle
        self.__before_submit = before_submit
        self.__after_completion = after_completion
        self.__num_iso_packets = iso_packets
        result = libusb1.libusb_alloc_transfer(iso_packets)
        if not result:
            raise libusb1.USBError('Unable to get a transfer object')
        self.__transfer = result
        self.__ctypesCallbackWrapper = libusb1.libusb_transfer_cb_fn_p(
            self.__callbackWrapper)
def __init__ ( self , handle , iso_packets , before_submit , after_completion ) : if iso_packets < 0 : raise ValueError ( 'Cannot request a negative number of iso ' 'packets.' ) self . __handle = handle self . __before_submit = before_submit self . __after_completion = after_completion self . __num_iso_packets = iso_packets result = libusb1 . libusb_alloc_transfer ( iso_packets ) if not result : raise libusb1 . USBError ( 'Unable to get a transfer object' ) self . __transfer = result self . __ctypesCallbackWrapper = libusb1 . libusb_transfer_cb_fn_p ( self . __callbackWrapper )