Marek Safar
4de39e0eac
[corlib] BinaryStream sting reading from custom stream uses correct count. Fixes #15143
2014-01-17 21:59:40 +01:00
Marek Safar
c132a3c3b0
Fix BinaryReader.ReadChars() no longer recursively calls BinaryReader.Read(). Patch based on tomspilman pull request #559
2013-02-21 12:42:06 +01:00
Rodrigo Kumpera
f378e23a3f
Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:41:51 -05:00
Marek Safar
11db01b5a1
Add few new 4.5 overloads
2011-09-19 19:34:27 +01:00
Sebastien Pouliot
81cd91ebec
Expose Dispose under the NET_2_1 based profiles. Fix bug #154
2011-09-18 10:26:13 -04:00
Sebastien Pouliot
dd7c825425
Fix API compatibility with SL4
...
* BinaryReader.cs:
* BinaryWriter.cs:
Adding || MOONLIGHT since Dispose (new in FX4) is also exposed
in SL4
2011-03-10 14:33:32 -05:00
Marek Safar
b87d4ad402
Improve compatibility of BinaryReader with non-default encoder when reading large strings
2011-01-26 08:59:11 +00:00
Miguel de Icaza
53e7b9d5b6
2009-10-21 Miguel de Icaza <[email protected] >
...
* BinaryWriter.cs, BinaryReader.cs: 4.0 signature update.
* File.cs (ReadLines, AppendAllLines, WriteAllLines): Add
IEnumerable methods.
* Path.cs (Combine): add the params overload.
svn path=/trunk/mcs/; revision=144597
2009-10-22 03:19:06 +00:00
Miguel de Icaza
0204abe803
Drop more obsolete defines
...
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Zoltan Varga
61c51fe227
2008-10-12 Zoltan Varga <[email protected] >
...
* BinaryReader.cs (Read7BitEncodedInt): Check for an invalid encoding.
Fixes #434581 .
svn path=/trunk/mcs/; revision=115560
2008-10-12 10:45:11 +00:00
Marek Safar
cc9c53a109
Warnings cleanup
...
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Andreas N
3df89d4a6d
2008-06-30 Andreas Nahr <[email protected] >
...
* BinaryReader.cs: Fix parameter names
* BinaryWriter.cs: Fix parameter names, fix exceptions
* BufferedStream.cs: Fix parameter names
* Directory.cs: Fix parameter names, fix exceptions, optimize == "" cases
* DirectoryInfo.cs:
* DirectoryNotFoundException.cs:
* FileNotFoundException.cs:
* FileStream.cs: Fix parameter names, fix exceptions
* IOException.cs: Fix parameter names
svn path=/trunk/mcs/; revision=106943
2008-06-30 23:02:31 +00:00
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