VariantG.newBytestring

Creates an array-of-bytes #GVariant with the contents of string. This function is just like glib.variant.VariantG.newString except that the string need not be valid UTF-8.

The nul terminator character at the end of the string is stored in the array.

class VariantG
static
newBytestring
(
string string_
)

Parameters

string_ string

a normal nul-terminated string in no particular encoding

Return Value

Type: glib.variant.VariantG

a floating reference to a new bytestring #GVariant instance