get_int64
Description:
Returns the 64-bit signed integer value of this.
It is an error to call this function with a this of any type other than g_variant_type_int64.
Example: Get a int64:
public static int main () {
Variant var1 = new Variant.int64 (10);
// Output: ``10``
print ("%"+int64.FORMAT+"\n", var1.get_int64 ());
// Output: ``10``
print ("%"+int64.FORMAT+"\n", (int64) var1);
return 0;
}
valac --pkg glib-2.0 GLib.Variant.get_int64.vala
Parameters:
this |
an int64 Variant instance |
Returns:
a int64 |