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

Re: [Mono-dev] [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-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

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