Пример #1
0
        public static Art.SvpWriter RewindNew(Art.WindRule rule)
        {
            IntPtr raw_ret = art_svp_writer_rewind_new((int)rule);

            Art.SvpWriter ret = Art.SvpWriter.New(raw_ret);
            return(ret);
        }
Пример #2
0
        public Art.SVP RewindUncrossed(Art.WindRule rule)
        {
            IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this));

            System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
            IntPtr raw_ret = art_svp_rewind_uncrossed(this_as_native, (int)rule);

            Art.SVP ret = Art.SVP.New(raw_ret);
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            return(ret);
        }