public static RC.Buffer New(IntPtr raw) { if (raw == IntPtr.Zero) { return RC.Buffer.Zero; } RC.Buffer self = new RC.Buffer(); self = (RC.Buffer) Marshal.PtrToStructure (raw, self.GetType ()); return self; }
public static RC.Buffer MapFile(string filename) { IntPtr filename_as_native = GLib.Marshaller.StringToPtrGStrdup(filename); IntPtr raw_ret = rc_buffer_map_file(filename_as_native); RC.Buffer ret = RC.Buffer.New(raw_ret); GLib.Marshaller.Free(filename_as_native); return(ret); }
public static RC.Buffer New(IntPtr raw) { if (raw == IntPtr.Zero) { return(RC.Buffer.Zero); } RC.Buffer self = new RC.Buffer(); self = (RC.Buffer)Marshal.PtrToStructure(raw, self.GetType()); return(self); }
static extern void rc_buffer_unmap_file(ref RC.Buffer raw);