Variant.int16


Description:

public Variant.int16 (int16 value)

Creates a new int16 Variant instance.

Example: Create a new int16 Variant:

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

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

Parameters:

value

a int16 value

Returns:

a floating reference to a new int16 Variant instance