[Mono-dev] [PATCH] Managed Marshal.Copy implemantations

Paolo Molaro lupus at ximian.com
Thu Mar 20 10:26:21 EDT 2008

On 03/20/08 Kornél Pál wrote:
> > cases). So you'd need at least another icall that says if the Copy
> > operations are allowed on the array. It's better to have a single icall
> > that does it all, returning 0 for the cases where the copy is not
> > allowed. In that case the name GetElementSize would be wrong.
> OK, I see the problem. Would it be reasonable to expose internal runtime 
> structures to managed code so that it could read internal array properties 
> rather than relying on internal calls?

Yes, we expose them with internal calls:)
Eventually we may expose MonoVTable as such, but there is little chance
something like MonoClass will be ever exported. Internal calls is the
way to go.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list