« Return to Thread: [PATCH] Simple implementation of network interface properties for Mac OS X

Re: [PATCH] Simple implementation of network interface properties for Mac OS X

by Alexander Shulgin :: Rate this Message:

Reply to Author | View in Thread

Alan McGovern wrote:
> Hey,
>
[snip]
>     --
>     Alex
>     PS: is there more appropriate way to increment IntPtr value w/o
>     using ToInt64()?
>
>
> You could use a loop and Marshal.ReadByte (IntPtr ptr, int offset);

For this purpose, yes.  But what would you do if amount of data to read
is, say megabyte or more?

--
Alex

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list

 « Return to Thread: [PATCH] Simple implementation of network interface properties for Mac OS X