Commit Graph
9 Commits
Author SHA1 Message Date
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