[Gtk-sharp-list] Pixbuf API observations.

Miguel de Icaza miguel@ximian.com
18 Feb 2003 01:27:55 -0500


> > 	* Constructor based on: gdk_pixbuf_new_from_data
> > 	  	The first argument should be a "byte *data", but instead
> > 	 	the generator picks `byte data'.
> Wouldn't an array be better?  (Although, if you did use "byte[] data",
> then you'd get the overhead of having the runtime bounds checking.)

You are absolutely right.  byte * is not really something you encouter
every day in C#, and byte [] will be a lot more common (from stream
reading for example).

I do not think that the array bounds check will be an issue.

> That's probably because GdkRGB is NOT based on GObject.  It's
> just a struct, if I remember correctly.  (A handwritten .cs
> file likely needs to be created for it.)

Ah!  Now we need a volunteer

/me whistles innocently as he spots Charles.