X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.IO%2FIntPtrStream.cs;h=40b1c580f6242647a72dcbccf64851951bba8b5a;hb=e3a2538f4e5785fb9f4ce0474ebc18864f789496;hp=22958eec32b6e0c6b4169a230b1c1455cff593e6;hpb=2007998771b1c4d9e762943676d7959daaf74385;p=mono.git diff --git a/mcs/class/corlib/System.IO/IntPtrStream.cs b/mcs/class/corlib/System.IO/IntPtrStream.cs index 22958eec32b..40b1c580f62 100644 --- a/mcs/class/corlib/System.IO/IntPtrStream.cs +++ b/mcs/class/corlib/System.IO/IntPtrStream.cs @@ -57,6 +57,14 @@ namespace System.IO { position = 0; } + internal IntPtr BaseAddress { + get { + unsafe { + return new IntPtr ((void*) base_address); + } + } + } + public override bool CanRead { get { return true;