[Mono-list] How are arrays marshalled?

Dietmar Maurer dietmar@ximian.com
02 Nov 2002 09:12:04 +0100


On Fri, 2002-11-01 at 18:53, J. Perkins wrote:
> Like the subject says, how are arrays of primitive types marshaled
> between managed and unmanaged code? Are they copied into a new memory
> area, or do you just pass a pointer? 

That depends on the type of the array. Blittable arrays are passed as
pointer, more complex types are copied.

Blittable arrays are arrays of simple types, for example an array of
int. MS has some documentation about that.

- Dietmar