dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs, 1.


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs, 1.13, 1.14
Date: Tue, 19 Aug 2003 00:31:21 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv22572/runtime/System/IO

Modified Files:
        MemoryStream.cs 
Log Message:


Rewrite the "System.IO.MemoryStream" class.


Index: MemoryStream.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/MemoryStream.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** MemoryStream.cs     10 Jun 2003 04:48:50 -0000      1.13
--- MemoryStream.cs     19 Aug 2003 04:31:19 -0000      1.14
***************
*** 2,10 ****
   * MemoryStream.cs - Implementation of the "System.IO.MemoryStream" class.
   *
!  * Copyright (C) 2002  Free Software Foundation, Inc.
!  *
!  * Contributed by Stephen Compall <address@hidden>.
!  * Contributions by Haran Shivanan <address@hidden>
!  * Contributions by Thong Nguyen <address@hidden>
   *
   * This program is free software; you can redistribute it and/or modify
--- 2,6 ----
[...967 lines suppressed...]
!                                       if(value < 0 || value > Int32.MaxValue)
!                                       {
!                                               throw new 
ArgumentOutOfRangeException
!                                                       ("value", 
_("IO_InvalidSeekPosition"));
!                                       }
!                                       try
!                                       {
!                                               position = checked(start + 
((int)value));
!                                       }
!                                       catch(OverflowException)
!                                       {
!                                               throw new 
ArgumentOutOfRangeException
!                                                       ("value", 
_("IO_InvalidSeekPosition"));
!                                       }
!                               }
!                       }
  
! }; // class MemoryStream
  
! }; // namespace System.IO





reply via email to

[Prev in Thread] Current Thread [Next in Thread]