get_string_descriptor_bytes


Description:

[ Version ( since = "0.3.6" ) ]
public Bytes get_string_descriptor_bytes (uint8 desc_index, uint16 langid) throws Error

Get a raw string descriptor from the device.

The returned string should be freed with g_bytes_unref when no longer needed. The descriptor will be at most 128 btes in length, if you need to issue a request with either a smaller or larger descriptor, you can use g_usb_device_get_string_descriptor_bytes_full instead.

Parameters:

desc_index

the index for the string descriptor to retrieve

langid

the language ID

Returns:

a possibly UTF-16 string, or NULL on error.