Exemplo n.º 1
0
 static extern bool g_type_check_value_holds(ref Value val, IntPtr gtype);
Exemplo n.º 2
0
 static extern void g_value_set_string(ref Value val, IntPtr data);
Exemplo n.º 3
0
 static extern void g_value_set_uint(ref Value val, uint data);
Exemplo n.º 4
0
 static extern void g_value_set_float(ref Value val, float data);
Exemplo n.º 5
0
 static extern void g_value_set_param(ref Value val, IntPtr data);
Exemplo n.º 6
0
 static extern void g_value_set_boolean(ref Value val, bool data);
Exemplo n.º 7
0
 static extern void g_value_set_double(ref Value val, double data);
Exemplo n.º 8
0
 static extern uint g_value_get_flags(ref Value val);
Exemplo n.º 9
0
 static extern float g_value_get_float(ref Value val);
Exemplo n.º 10
0
 static extern double g_value_get_double(ref Value val);
Exemplo n.º 11
0
 static extern int g_value_get_enum(ref Value val);
Exemplo n.º 12
0
 static extern sbyte g_value_get_char(ref Value val);
Exemplo n.º 13
0
 static extern IntPtr g_value_get_boxed(ref Value val);
Exemplo n.º 14
0
 static extern bool g_value_get_boolean(ref Value val);
Exemplo n.º 15
0
 static extern uint g_value_get_uint(ref Value val);
Exemplo n.º 16
0
 static extern int g_value_get_int(ref Value val);
Exemplo n.º 17
0
 static extern ulong g_value_get_uint64(ref Value val);
Exemplo n.º 18
0
 static extern long g_value_get_int64(ref Value val);
Exemplo n.º 19
0
 static extern void g_value_set_boxed(ref Value val, IntPtr data);
Exemplo n.º 20
0
 static extern IntPtr g_value_get_object(ref Value val);
Exemplo n.º 21
0
 static extern void g_value_set_enum(ref Value val, int data);
Exemplo n.º 22
0
 static extern IntPtr g_value_get_param(ref Value val);
Exemplo n.º 23
0
 static extern void g_value_set_object(ref Value val, IntPtr data);
Exemplo n.º 24
0
 static extern IntPtr g_value_get_pointer(ref Value val);
Exemplo n.º 25
0
 static extern void g_value_set_pointer(ref Value val, IntPtr data);
Exemplo n.º 26
0
 static extern IntPtr g_value_get_string(ref Value val);
Exemplo n.º 27
0
 static extern void g_value_set_uchar(ref Value val, byte data);
Exemplo n.º 28
0
 static extern byte g_value_get_uchar(ref Value val);
Exemplo n.º 29
0
 static extern void g_value_set_uint64(ref Value val, ulong data);
Exemplo n.º 30
0
 bool NativeInvoker(InvocationHint ihint, object[] pvals)
 {
     int val_sz = Marshal.SizeOf (typeof (Value));
     IntPtr buf = Marshal.AllocHGlobal (pvals.Length * val_sz);
     Value[] vals = new Value [pvals.Length];
     for (int i = 0; i < pvals.Length; i++) {
         vals [i] = new Value (pvals [i]);
         IntPtr p = new IntPtr ((long) buf + i * val_sz);
         Marshal.StructureToPtr (vals [i], p, false);
     }
     bool result = cb (ref ihint, (uint) pvals.Length, buf, user_data);
     foreach (Value v in vals)
         v.Dispose ();
     Marshal.FreeHGlobal (buf);
     return result;
 }