public Poppler.Dest FindDest(string link_name) { IntPtr native_link_name = GLib.Marshaller.StringToPtrGStrdup(link_name); IntPtr raw_ret = poppler_document_find_dest(Handle, native_link_name); Poppler.Dest ret = Poppler.Dest.New(raw_ret); GLib.Marshaller.Free(native_link_name); return(ret); }
public Poppler.Dest Copy() { 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 = poppler_dest_copy(this_as_native); Poppler.Dest ret = Poppler.Dest.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
static void ReadNative(IntPtr native, ref Poppler.Dest target) { target = New(native); }