get_uint16
Description:
Returns the 16-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_uint16.
Example: Get a uint16:
public static int main () {
Variant var1 = new Variant.uint16 (10);
// Output: ``10``
print ("%d\n", var1.get_uint16 ());
// Output: ``10``
print ("%d\n", (uint16) var1);
return 0;
}
valac --pkg glib-2.0 GLib.Variant.get_uint16.vala
Parameters:
this |
a uint16 Variant instance |
Returns:
a uint16 |