Exemple #1
0
		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;
		}
Exemple #2
0
        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);
        }
Exemple #3
0
 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);
 }
Exemple #4
0
 static extern void rc_buffer_unmap_file(ref RC.Buffer raw);