Commit Graph
23 Commits
Author SHA1 Message Date
Marek Safar 336382e2b1 [corlib] corcompare update 2014-08-25 13:12:42 +02:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Miguel de Icaza ee8ad64dc5 Include System.IO.MemoryMappedFiles in the MOBILE profile 2011-12-02 13:15:37 -05:00
Gonzalo Paniagua Javier e14a2279b2 2010-01-28 Gonzalo Paniagua Javier <[email protected]>
* UnmanagedMemoryStream.cs: fix a regression from my previous patch.


svn path=/trunk/mcs/; revision=150507
2010-01-28 23:01:51 +00:00
Gonzalo Paniagua Javier 911170c693 2010-01-25 Gonzalo Paniagua Javier <[email protected]>
* UnmanagedMemoryStream.cs: add the SafeBuffer overloads.


svn path=/trunk/mcs/; revision=150162
2010-01-25 23:36:49 +00:00
Rolf Bjarne Kvinge 837adb6a21 2010-01-14 Rolf Bjarne Kvinge <[email protected]>
* UnmanagedMemoryStream.cs: Read: don't read bytes one-by-one, read all
	at once.

svn path=/trunk/mcs/; revision=149555
2010-01-14 13:17:53 +00:00
Marek Safar 3086e99d75 Warnings cleanup
svn path=/trunk/mcs/; revision=146142
2009-11-13 14:52:59 +00:00
Miguel de Icaza a22ee129a0 svn path=/trunk/mcs/; revision=145671 2009-11-08 18:16:21 +00:00
Miguel de Icaza e9eafddcd6 2009-11-07 Miguel de Icaza <[email protected]>
* UnmanagedMemoryStream.cs: Move the CLS attribute to the methods
	that are unsafe.

	* Path.cs (Combine):e Fix implementation to follow docs (we need
	to reset the path if any of the combined paths is rooted), and add a
	couple of overloads;

	* FileStream.cs (Flush/flushToDisk): Implement.

	* Stream.cs (CopyTo): Implement.



svn path=/trunk/mcs/; revision=145640
2009-11-07 07:09:10 +00:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Sebastien Pouliot 47f90fc316 In Test/System.IO:
2009-10-15  Sebastien Pouliot  <[email protected]>

	* UnmanagedMemoryStreamTest.cs: Add more test cases to cover all
	validations

In System.IO:
2009-10-15  Sebastien Pouliot  <[email protected]>

	* UnmanagedMemoryStream.cs: Fix some and add missing validations


svn path=/trunk/mcs/; revision=144226
2009-10-15 20:18:40 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Sebastien Pouliot 3b3c977ed0 2008-08-21 Sebastien Pouliot <[email protected]>
* FileStream.cs: Adjust exception being thrown for Silverlight 2.0.
	* FileSystemInfo.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject nor does it implement ISerializable.
	* Stream.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject.
	* TextReader.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject.
	* TextWriter.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject.
	* UnmanagedMemoryStream.cs: For Silverlight 2 add CLSCompliant(false)
	to the PositionPointer property.


svn path=/trunk/mcs/; revision=111271
2008-08-21 15:40:33 +00:00
Miguel de Icaza 1212d5385e 2008-02-15 Miguel de Icaza <[email protected]>
* UnmanagedMemoryStream.cs: Implement few missing pieces.

svn path=/trunk/mcs/; revision=95839
2008-02-15 21:48:54 +00:00
Atsushi Eno c98ee48759 2007-05-28 Atsushi Enomoto <[email protected]>
* IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
	  SatelliteContractVersionAttribute.cs ResourceManager.cs
	  IResourceReader.cs ResourceSet.cs ResourceWriter.cs
	  ResourceReader.cs UltimateResourceFallbackLocation.cs
	  MissingManifestResourceException.cs :
	  implemented 2.0 resource support (write, and remaining read bits)
	  and GetStream(). Cosmetic attributes fixes.

	* UnmanagedMemoryStream.cs : added Closed event for sys.Resources use.
	* IntPtrStream.cs : added internal get_BaseAddress(), for the same.

	* ResourceManagerTest.cs : added tests for GetStream() (including
	  2.0 resource format tests).


svn path=/trunk/mcs/; revision=78024
2007-05-28 03:35:21 +00:00
Gert Driesen 2c9729cdbc * UnmanagedMemoryStream.cs: In Read and ReadByte, use Marshal.ReadByte
to read bytes as this allows us to start reading from the current
position. In Read, return 0 when reading beyond the end of the stream
and only read bytes until the end of the stream (not capacity).
In ReadByte, return -1 when reading beyond the end of the stream.
In SetLength: changed argument validation (and reported exceptions) to
match MS, removed duplicate access check and changed the current
position if length is less than position. In Write: throw
NotSupportedException when attempting to write beyond capacity, use
Marshal.WriteByte since that allows us to start writing from the
current position. Adjust length when position moves beyond length
in both Write and WriteByte. Allow position to be moved beyond
capacity of stream. Fixed position using Seek (=+ typo). Changed 
CanRead to ignore current position. Allow Position to be used to move
beyond capacity of stream.
* UnmanagedMemoryStreamTest.cs: Added tests for CanRead, CanSeek,
CanWrite, Seek, Write. Improved existing tests for SetLength,
Position. Enabled tests that were previously failing.

svn path=/trunk/mcs/; revision=77972
2007-05-25 20:22:40 +00:00
Gert Driesen 0b28cba334 * UnmanagedMemoryStreamTest.cs: Fixed several tests and added several
more. Tests were previously ignored by NUnit because the SetUp method
was private.
* UnmanagedMemoryStream.cs: Changed argument names and exceptions
(msg, params) to match MS. Verify access argument in ctor.

svn path=/trunk/mcs/; revision=77894
2007-05-24 08:14:45 +00:00
Atsushi Eno b6a43591a1 2007-05-23 Atsushi Enomoto <[email protected]>
* UnmanagedMemoryStream.cs : couple of bugfixes. in Read(), don't
	  return buffer beyond the requested length. Fixed .ctor() for wrong
	  capacity initialization.


svn path=/trunk/mcs/; revision=77823
2007-05-23 04:31:06 +00:00
Dick Porter 5b79519900 2007-04-30 Dick Porter <[email protected]>
* Directory.cs: 
	* FileShare.cs: 
	* DirectoryNotFoundException.cs: 
	* SeekOrigin.cs: 
	* FileAttributes.cs: 
	* IOException.cs: 
	* MemoryStream.cs: 
	* FileMode.cs: 
	* BinaryWriter.cs: 
	* TextWriter.cs: 
	* File.cs: 
	* BinaryReader.cs: 
	* TextReader.cs: 
	* UnmanagedMemoryStream.cs: 
	* StringWriter.cs: 
	* FileAccess.cs: 
	* FileLoadException.cs: 
	* BufferedStream.cs: 
	* Stream.cs: 
	* FileInfo.cs: 
	* FileStream.cs:
	* StringReader.cs: 
	* StreamWriter.cs: 
	* EndOfStreamException.cs: 
	* DriveInfo.cs: 
	* StreamReader.cs: 
	* PathTooLongException.cs: 
	* DriveType.cs: 
	* FileNotFoundException.cs: 2.0 profile updates



svn path=/trunk/mcs/; revision=76495
2007-04-30 14:05:12 +00:00
Alp Toker c5d804e0ab 2007-04-03 Alp Toker <[email protected]>
* UnmanagedMemoryStream.cs: Should not have a public Dispose().
	This behaviour is already provided by the base class.


svn path=/trunk/mcs/; revision=75324
2007-04-03 07:30:10 +00:00
Alp Toker d7dc652806 2007-03-18 Alp Toker <[email protected]>
* UnmanagedMemoryStream.cs:
	* Directory.cs: Exception message typo fixes.


svn path=/trunk/mcs/; revision=74573
2007-03-18 22:04:17 +00:00
Zoltan Varga 7ef1815623 2007-03-11 Zoltan Varga <[email protected]>
* UnmanagedMemoryStream.cs: Fix a warning.

svn path=/trunk/mcs/; revision=74067
2007-03-11 14:24:28 +00:00
Miguel de Icaza 5c28d695c0 Patch from Sridhar Kulkarni (full impl)
svn path=/trunk/mcs/; revision=70953
2007-01-13 07:08:52 +00:00