[Mono-dev] Cairo.ImageSurface

Philipp Baer phbaer at npw.net
Tue May 2 07:44:42 EDT 2006

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...


Philipp Baer <phbaer at npw.net> [http://www.npw.net/]
--------------- contact information ---------------
mobile |+49-179-488 26 63|  fax |+49-561-804 62 77|
most current contact details  |'whois pb4412-ripe'|
---------------- gnupg-fingerprint ----------------
|16C7 84E8 5C5F C3D6 A8F1 A4DC E4CB A9A9 F5FA FF5D|

More information about the Mono-devel-list mailing list