Variant.getBytestring

Returns the string value of a GVariant instance with an array-of-bytes type. The string has no particular encoding. If the array does not end with a nul terminator character, the empty string is returned. For this reason, you can always trust that a non-NULL nul-terminated string will be returned by this function. If the array contains a nul terminator character somewhere other than the last byte then the returned string is the string, up to the first such nul character. It is an error to call this function with a value that is not an array of bytes. The return value remains valid as long as value exists. Since 2.26

class Variant
string
getBytestring
()

Return Value

Type: string

the constant string. [transfer none][array zero-terminated=1][element-type guint8]

Meta