dup_bytestring


Description:

public string dup_bytestring (out size_t length)

Similar to get_bytestring except that instead of returning a constant string, the string is duplicated.

The return value must be freed using g_free.

Parameters:

this

an array-of-bytes Variant instance

length

a pointer to a size_t, to store the length (not including the nul terminator)

Returns:

a newly allocated string