[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs,1.
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs,1.12,1.13 |
Date: |
Tue, 10 Jun 2003 00:48:53 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv7568/runtime/System/IO
Modified Files:
MemoryStream.cs
Log Message:
fixes to SetLength semantics
Index: MemoryStream.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/MemoryStream.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** MemoryStream.cs 28 May 2003 04:53:36 -0000 1.12
--- MemoryStream.cs 10 Jun 2003 04:48:50 -0000 1.13
***************
*** 255,263 ****
public override void SetLength(long value)
{
! if (!resizable)
throw new
NotSupportedException(_("IO_NotSupp_SetLength"));
if (!CanWrite)
throw new NotSupportedException(_("IO_NotSupp_Write"));
! if (value < 1 || value > Int32.MaxValue)
throw new ArgumentOutOfRangeException("value");
--- 255,263 ----
public override void SetLength(long value)
{
! if (!resizable && value > (topLimit-bottomLimit))
throw new
NotSupportedException(_("IO_NotSupp_SetLength"));
if (!CanWrite)
throw new NotSupportedException(_("IO_NotSupp_Write"));
! if (value < 0 || value > Int32.MaxValue)
throw new ArgumentOutOfRangeException("value");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs,1.12,1.13,
Gopal.V <address@hidden> <=