Commit Graph
30 Commits
Author SHA1 Message Date
Zoltan Varga 2d28c06ed2 2008-01-16 Zoltan Varga <[email protected]>
* BinaryReader.cs: Fix ReadCharBytes method to avoid non-linear behavior. 
	Fixes #352184.

svn path=/trunk/mcs/; revision=93049
2008-01-16 15:58:41 +00:00
Atsushi Eno 4089f586b1 2007-10-26 Atsushi Enomoto <[email protected]>
* Encoding.cs : added UTF8UnmarkedUnsafe, for old empty replacement
	  UTF8.

	* BinaryReader.cs, BinaryWriter.cs : use unsafe encoding that has ""
	  for replacement fallback. Binary serialization regression is fixed.


svn path=/trunk/mcs/; revision=88276
2007-10-26 17:27:23 +00:00
Gert Driesen ce9892f0a0 * BinaryReader.cs: Fixed line endings.
* FileStream.cs: Rename name argument to path. Spaces to tabs.

svn path=/trunk/mcs/; revision=84797
2007-08-24 10:51:01 +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
Zoltan Varga 2491ea541c 2006-09-02 Zoltan Varga <[email protected]>
* BinaryReader.cs (Read): Avoid allocating memory when reading a char.

svn path=/trunk/mcs/; revision=64767
2006-09-02 12:48:28 +00:00
Gonzalo Paniagua Javier 8e27b56526 2006-06-02 Gonzalo Paniagua Javier <[email protected]>
* BinaryReader.cs: use BlockCopyInternal.


svn path=/trunk/mcs/; revision=61422
2006-06-02 20:26:23 +00:00
Miguel de Icaza 80413e828b Fix for 76489
svn path=/trunk/mcs/; revision=52171
2005-10-25 05:00:24 +00:00
Ben Maurer 68f4365510 In Test/System.IO:
2005-10-01  Ben Maurer  <[email protected]>

	* BinaryReaderTest.cs: new test for long, non-ascii strings

In System.IO:
2005-10-01  Ben Maurer  <[email protected]>

	* BinaryReader.cs: The patch below had a nasty little bug with
	long strings that had non-ascii chars in it, because it was
	looking at the char count, not the byte count.


svn path=/trunk/mcs/; revision=51081
2005-10-01 18:43:46 +00:00
Ben Maurer c34fff5211 2005-09-11 Ben Maurer <[email protected]>
* BinaryReader.cs: An optimization for ReadString that had been
	approved/well tested for a while but never gotten in. Bug #52754.


svn path=/trunk/mcs/; revision=49926
2005-09-11 20:36:45 +00:00
Gonzalo Paniagua Javier dc562ad9ea forgot this one
svn path=/trunk/mcs/; revision=47624
2005-07-25 05:25:47 +00:00
Gonzalo Paniagua Javier b61e1cb405 2005-07-25 Gonzalo Paniagua Javier <[email protected]>
* BinaryReader.cs: use Buffer.BlockCopy instead of Array.Copy when
	expanding the buffer.


svn path=/trunk/mcs/; revision=47623
2005-07-25 05:23:06 +00:00
Lluis Sanchez a90febfa62 2005-03-16 Lluis Sanchez Gual <[email protected]>
* BinaryReader.cs, BinaryWriter.cs: Read/write dobules, floats and
	decimals in little endian format.


svn path=/trunk/mcs/; revision=42158
2005-03-23 17:26:15 +00:00
Ben Maurer e87a77f968 2004-12-11 Ben Maurer <[email protected]>
* BinaryReader.cs (ReadByte): Check for exceptions here.


svn path=/trunk/mcs/; revision=37642
2004-12-11 21:59:49 +00:00
Ben Maurer a75ca5d34e 2004-09-12 Ben Maurer <[email protected]>
* BinaryReader.cs: Use ReadByte when possible. Gives a tad
	of perf, and fixes a bug reported on mono-patches-list

svn path=/trunk/mcs/; revision=33772
2004-09-12 15:02:23 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Sebastien Pouliot 502882dde2 2004-05-30 Sebastien Pouliot <[email protected]>
* BinaryReader.cs: Added missing disposed check for most methods.
	Reordered some exceptions to match MS implementation.

svn path=/trunk/mcs/; revision=28480
2004-05-30 15:10:15 +00:00
Gonzalo Paniagua Javier 6fa8420951 2004-03-31 Gonzalo Paniagua Javier <[email protected]>
* BinaryReader.cs: don't modify the underlying stream in Peek(). Fixes
	bug #51741. Patch by Nick Vaughan.

svn path=/trunk/mcs/; revision=24835
2004-03-31 09:00:37 +00:00
Gonzalo Paniagua Javier 1cd5afc014 2003-09-19 Gonzalo Paniagua Javier <[email protected]>
* BinaryReader.cs: return the correct number of bytes read when there
	are some bytes from peeking.

svn path=/trunk/mcs/; revision=18183
2003-09-19 06:14:35 +00:00
Lluis Sanchez 2638575dba * BinaryReader.cs: underlaying stream don't need to be seekable to use PeekChar.
svn path=/trunk/mcs/; revision=14934
2003-05-27 15:04:43 +00:00
Dietmar Maurer 42978deb20 2003-04-25 Dietmar Maurer <[email protected]>
* BinaryReader.cs (Read): make sure the buffer is big enough (fix
	bug # 40702)

svn path=/trunk/mcs/; revision=13997
2003-04-25 07:51:23 +00:00
Ville Palo 716c8ab73d 2003-04-13 Ville Palo <[email protected]>
* BinaryReader.cs: Fix to ReadDecimal() method.

svn path=/trunk/mcs/; revision=13583
2003-04-13 17:44:35 +00:00
Ville Palo dc0c2afe6a 2003-04-13 Ville Palo <[email protected]>
* StringReader.cs: Added some ObjectDisposedExceptions.
	* StringWriter.cs: Added some ObjectDisposedExceptions.
	* BinaryReader.cs: Added some ObjectDisposedExceptions.

svn path=/trunk/mcs/; revision=13576
2003-04-13 13:13:20 +00:00
Miguel de Icaza 2e279403ec 2002-10-30 Miguel de Icaza <[email protected]>
* StreamWriter.cs: Ditto for Null stream.

	* BinaryReader.cs: Use Unmarked here too.

svn path=/trunk/mcs/; revision=8687
2002-10-31 01:06:30 +00:00
Gonzalo Paniagua Javier 5bf2383288 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
* System.IO/BinaryReader.cs:
	* System.IO/BinaryWriter.cs:
	* System.IO/MemoryStream.cs:
	* System.IO/StreamReader.cs:
	* System.IO/StreamWriter.cs:
	* System.IO/StringReader.cs:
	* System.IO/StringWriter.cs:
	* System.IO/TextWriter.cs:
	* System.Threading/WaitHandle.cs: IDisposable fixes.

svn path=/trunk/mcs/; revision=7118
2002-08-28 02:30:47 +00:00
Dick Porter ac65c444d4 2002-08-18 Dick Porter <[email protected]>
* BinaryReader.cs: Fixed buffering

svn path=/trunk/mcs/; revision=6719
2002-08-18 11:17:22 +00:00
Nick Drochak 461571d604 2002-08-09 Nick Drochak <[email protected]>
* BinaryReader.cs: added virtual to Dispose(bool).

svn path=/trunk/mcs/; revision=6564
2002-08-09 14:46:08 +00:00
Duncan Mak 9d55c814e2 2002-07-31 Duncan Mak <[email protected]>
* StreamReader.cs:
	(Dispose): Added and implmented.

	* StreamWriter.cs:
	(Dispose): Fixed visibility.
	(Initialize): Fixed visibility, made internal.

	* BinaryReader.cs:
	(Dispose): Fixed visibility.

svn path=/trunk/mcs/; revision=6279
2002-07-31 11:11:54 +00:00
Sergey Chaban fc3048b245 * BinaryReader.cs: internal buffer fix. Little-endian conversions.
* BinaryWriter.cs: little-endian conversions.

svn path=/trunk/mcs/; revision=4168
2002-04-30 14:32:21 +00:00
Matt Kimball 7ab49e1517 Wed Jan 9 16:04:39 MST 2002 Matt Kimball <[email protected]>
* BinaryWriter.cs: Initial implementation.  And it's all there.

	* BinaryReader.cs: The constructor now uses the passed in encoding,
	not UTF8 always.

svn path=/trunk/mcs/; revision=1933
2002-01-09 19:13:42 +00:00
Matt Kimball 863ff578c7 Wed Jan 9 13:54:28 MST 2002 Matt Kimball <[email protected]>
* BinaryReader.cs: Initial implementation.  I think it's complete.

svn path=/trunk/mcs/; revision=1931
2002-01-09 17:03:08 +00:00