(self, descriptor, lang_id)
return descriptor_string.value.decode('UTF-16-LE')
Fetch description string for given descriptor and in given language.
        Use getSupportedLanguageList to know which languages are available.
        Return value is an unicode string.
        Return None if there is no such descriptor on device.
Fetch description string for given descriptor and in given language.
        Use getSupportedLanguageList to know which languages are available.
        Return value is an unicode string.
        Return None if there is no such descriptor on device.
Fetch description string for given descriptor and in given language . Use getSupportedLanguageList to know which languages are available . Return value is an unicode string . Return None if there is no such descriptor on device .
def getStringDescriptor(self, descriptor, lang_id):
        """
        Fetch description string for given descriptor and in given language.
        Use getSupportedLanguageList to know which languages are available.
        Return value is an unicode string.
        Return None if there is no such descriptor on device.
        """
        descriptor_string = create_binary_buffer(STRING_LENGTH)
        result = libusb1.libusb_get_string_descriptor(self.__handle,
            descriptor, lang_id, descriptor_string, sizeof(descriptor_string))
        if result == libusb1.LIBUSB_ERROR_NOT_FOUND:
            return None
        if result < 0:
            raise libusb1.USBError(result)
        return descriptor_string.value.decode('UTF-16-LE')
def getStringDescriptor ( self , descriptor , lang_id ) : descriptor_string = create_binary_buffer ( STRING_LENGTH ) result = libusb1 . libusb_get_string_descriptor ( self . __handle , descriptor , lang_id , descriptor_string , sizeof ( descriptor_string ) ) if result == libusb1 . LIBUSB_ERROR_NOT_FOUND : return None if result < 0 : raise libusb1 . USBError ( result ) return descriptor_string . value . decode ( 'UTF-16-LE' )