[Mono-dev] Cairo.ImageSurface
Zac Bowling
zac at zacbowling.com
Tue May 2 10:06:40 EDT 2006
Yeah, now that look ref is better. Since this function was pretty much
useless before. Tested and should be good to go ahead and commit.
Zac
On Tue, 2006-05-02 at 13:44 +0200, Philipp Baer wrote:
> Zac Bowling wrote:
> > Why are you making the byte array passed by ref? Otherwise it looks
> > good.
>
> In doubt, I thought, ref is better :) No there's no real reason
> for the ref except that explicitly specifying ref makes it clear that
> the array should not be copied. I suppose, however, they are passed by
> ref, right?
>
> Well, actually you made me thing about this again. When using a byte
> array to a native function call, it should be fixed. Otherwise
> it might be relocated later on. Nevertheless, the cairo method
> explicitly states that you have to take care of the buffer.
>
> This patched class works just fine in our project, though...
>
>
> phb
>
More information about the Mono-devel-list
mailing list