(self)
return result
Get data buffer content.
        Should not be called on a submitted transfer.
Get data buffer content.
        Should not be called on a submitted transfer.
Get data buffer content . Should not be called on a submitted transfer .
def getBuffer(self):
        """
        Get data buffer content.
        Should not be called on a submitted transfer.
        """
        transfer_p = self.__transfer
        transfer = transfer_p.contents
        if transfer.type == libusb1.LIBUSB_TRANSFER_TYPE_CONTROL:
            result = libusb1.libusb_control_transfer_get_data(transfer_p)
        else:
            result = string_at(transfer.buffer, transfer.length)
        return result
def getBuffer ( self ) : transfer_p = self . __transfer transfer = transfer_p . contents if transfer . type == libusb1 . LIBUSB_TRANSFER_TYPE_CONTROL : result = libusb1 . libusb_control_transfer_get_data ( transfer_p ) else : result = string_at ( transfer . buffer , transfer . length ) return result