Package: glib

Function glib:variant-is-floating

Lambda List

glib:variant-is-floating (value)

Arguments

value -- a g:variant instance

Return Value

The boolean whether value is floating.

Details

Checks whether value has a floating reference count. This function should only ever be used to assert that a given variant is or is not floating, or for debug purposes. To acquire a reference to a variant that might be floating, always use the g:variant-ref-sink or g:variant-take-ref functions.

See the g:variant-ref-sink function for more information about floating reference counts.
 

See also

2024-11-20