bool InvokeNative(Cdn.StackArgs inargs, Cdn.StackArg outarg, out int extraspace) { IntPtr error = IntPtr.Zero; bool result = native_cb(inargs == null ? IntPtr.Zero : inargs.Handle, outarg == null ? IntPtr.Zero : outarg.Handle, out extraspace, out error); return(result); }
public Cdn.StackArg GetPopn(int n) { IntPtr raw_ret = cdn_stack_manipulation_get_popn(Handle, n); Cdn.StackArg ret = raw_ret == IntPtr.Zero ? null : (Cdn.StackArg)GLib.Opaque.GetOpaque(raw_ret, typeof(Cdn.StackArg), false); return(ret); }
public static InstructionIndex NewOffset(int start, Cdn.Dimension retdim, Cdn.StackArg arg) { IntPtr native_retdim = GLib.Marshaller.StructureToPtrAlloc(retdim); InstructionIndex result = new InstructionIndex(cdn_instruction_index_new_offset(start, native_retdim, arg == null ? IntPtr.Zero : arg.Handle)); retdim = Cdn.Dimension.New(native_retdim); Marshal.FreeHGlobal(native_retdim); return(result); }
public InstructionIndex(Cdn.IndexRange range, Cdn.StackArg arg) : base(IntPtr.Zero) { if (GetType() != typeof(InstructionIndex)) { throw new InvalidOperationException("Can't override this constructor."); } IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc(range); Raw = cdn_instruction_index_new_range(native_range, arg == null ? IntPtr.Zero : arg.Handle); range = Cdn.IndexRange.New(native_range); Marshal.FreeHGlobal(native_range); }
public InstructionIndex(out int indices, Cdn.Dimension retdim, Cdn.StackArg arg) : base(IntPtr.Zero) { if (GetType() != typeof(InstructionIndex)) { throw new InvalidOperationException("Can't override this constructor."); } IntPtr native_retdim = GLib.Marshaller.StructureToPtrAlloc(retdim); Raw = cdn_instruction_index_new(out indices, native_retdim, arg == null ? IntPtr.Zero : arg.Handle); retdim = Cdn.Dimension.New(native_retdim); Marshal.FreeHGlobal(native_retdim); }
public static unsafe bool FunctionGetStackManipulation(Cdn.MathFunctionType type, Cdn.StackArgs inargs, Cdn.StackArg outarg, out int extra_space) { IntPtr error = IntPtr.Zero; bool raw_ret = cdn_math_function_get_stack_manipulation((int)type, inargs == null ? IntPtr.Zero : inargs.Handle, outarg == null ? IntPtr.Zero : outarg.Handle, out extra_space, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public void Append(Cdn.StackArg arg) { cdn_stack_args_append(Handle, arg == null ? IntPtr.Zero : arg.Handle); }
public InstructionIndex(out int rows, int n_rows, out int columns, int n_columns, Cdn.StackArg arg) : base(IntPtr.Zero) { if (GetType() != typeof(InstructionIndex)) { throw new InvalidOperationException("Can't override this constructor."); } Raw = cdn_instruction_index_new_rows_x_columns(out rows, n_rows, out columns, n_columns, arg == null ? IntPtr.Zero : arg.Handle); }
public void Copy(Cdn.StackArg src) { cdn_stack_arg_copy(Handle, src == null ? IntPtr.Zero : src.Handle); }