Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2003-09-12 03:47:32 +0400
committerLluis Sanchez <lluis@novell.com>2003-09-12 03:47:32 +0400
commit9d822830430c08d52167a1b4167939dc386b10ae (patch)
tree41f73bb2059832d756d9403a4ac7e5c109dc7d3a /mcs/class/System/System.Net.Sockets
parent965b3402a028b671e40d2649af60a35063478950 (diff)
* NetworkStream.cs: Added [In,Out] attributes to Read method.
svn path=/trunk/mcs/; revision=18043
Diffstat (limited to 'mcs/class/System/System.Net.Sockets')
-rw-r--r--mcs/class/System/System.Net.Sockets/ChangeLog4
-rw-r--r--mcs/class/System/System.Net.Sockets/NetworkStream.cs5
2 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/System/System.Net.Sockets/ChangeLog b/mcs/class/System/System.Net.Sockets/ChangeLog
index efead7ffba8..5c3af0ab2c0 100644
--- a/mcs/class/System/System.Net.Sockets/ChangeLog
+++ b/mcs/class/System/System.Net.Sockets/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
+
+ * NetworkStream.cs: Added [In,Out] attributes to Read method.
+
2003-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TcpListener.cs: various fixes to make the new tests pass. Closes
diff --git a/mcs/class/System/System.Net.Sockets/NetworkStream.cs b/mcs/class/System/System.Net.Sockets/NetworkStream.cs
index f522184830a..840237b6527 100644
--- a/mcs/class/System/System.Net.Sockets/NetworkStream.cs
+++ b/mcs/class/System/System.Net.Sockets/NetworkStream.cs
@@ -8,6 +8,7 @@
//
using System.IO;
+using System.Runtime.InteropServices;
namespace System.Net.Sockets
{
@@ -238,7 +239,7 @@ namespace System.Net.Sockets
GC.SuppressFinalize (this);
}
- public override int Read (byte [] buffer, int offset, int size)
+ public override int Read ([In,Out] byte [] buffer, int offset, int size)
{
CheckDisposed ();
int res;
@@ -257,7 +258,7 @@ namespace System.Net.Sockets
} catch (Exception e) {
throw new IOException ("Read failure", e);
}
-
+
return res;
}