get_uint32


Description:

public uint32 get_uint32 ()

Returns the 32-bit unsigned integer value of this.

It is an error to call this function with a this of any type other than g_variant_type_uint32.

Example: Get a uint32:

public static int main () {
Variant var1 = new Variant.uint32 (10);
// Output: ``10``
print ("%u\n", var1.get_uint32 ());
// Output: ``10``
print ("%u\n", (uint32) var1);
return 0;
}

valac --pkg glib-2.0 GLib.Variant.get_uint32.vala

Parameters:

this

a uint32 Variant instance

Returns:

a uint32