[Mono-bugs] [Bug 56208][Nor] Changed - [PATCH] Marshal.UnsafeAddrOfPinnedArrayElement patches
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 11:43:46 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=56208
--- shadow/56208 2004-04-04 11:20:12.000000000 -0400
+++ shadow/56208.tmp.27815 2004-04-04 11:43:46.000000000 -0400
@@ -40,6 +40,13 @@
MSDN says:
`For maximum performance, this method does no validation on the array
passed to it; this can result in unexpected behavior.', so it sounds
like they think it is a method that needs to be performant.
not really a big issue though.
+
+------- Additional Comments From bmaurer@users.sf.net 2004-04-04 11:43 -------
+also, look at:
+#define mono_array_addr_with_size(array,size,index) (
+((char*)(array)->vector) + (size) * (index) )
+
+you should probably use that for the icall version, for neatness.