Variant.uint16
Description:
Creates a new uint16 Variant instance.
Example: Create a new uint16 Variant:
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.Variant.uint16.vala
Parameters:
value |
a uint16 value |
Returns:
a floating reference to a new uint16 Variant instance |