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
b52c963187
Pass cancellation token to CopyAsync read block
2013-09-22 19:23:17 +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
Rodrigo Kumpera
b96d05dac3
Kill the MOONLIGHT define in corlib.
2013-02-11 16:03:28 -05:00
Marek Safar
5c3df6b95f
Mark some Stream members non-serialized. Fixes #5454
2012-06-07 14:25:48 +01:00
Marek Safar
26a9ba9b74
Add new 4.5 stream overloads
2012-03-19 17:15:49 +00:00
Marek Safar
7b51bb0cb1
Implement stream async methods
2011-09-28 08:09:33 +01:00
Jérémie Laval
df1e2d9a08
Move things around in Task and Task_T
2011-09-25 18:53:56 +02:00
Marek Safar
7f4dbcc68b
Add a few new async stream methods
2011-09-22 18:39:40 +01:00
Marek Safar
11db01b5a1
Add few new 4.5 overloads
2011-09-19 19:34:27 +01:00
Marek Safar
d6b4a3cc3f
Move some async types to corlib
2011-09-19 15:01:21 +01:00
Marek Safar
50f31db715
Make Stream BeginRead/BeginWrite asynchronous
2011-09-02 16:36:52 +01:00
Jb Evain
89afa16299
Stream.CopyTo is nice to have everywhere
2011-06-13 23:06:15 +02:00
Gonzalo Paniagua Javier
8fbfdf3790
Fix CryptoStream.Dispose
...
-Dispose will call TransformFinalBlock() for Read streams. Fixes bug #644648 .
-Dispose () will call Dispose (bool). Fixes bug #644654 .
-Stream.Close calls GC.SuppressFinalize(). Fixes bug #644660 .
2010-10-07 14:59:52 -04:00
Sebastien Pouliot
a30f25fd2f
2010-03-17 Sebastien Pouliot <[email protected] >
...
* Stream.cs: CopyTo methods are part of SL4 too
svn path=/trunk/mcs/; revision=153726
2010-03-17 11:56:17 +00:00
Gonzalo Paniagua Javier
7e2f3b95e9
fix signature
...
svn path=/trunk/mcs/; revision=151576
2010-02-12 01:34:07 +00:00
Miguel de Icaza
fe09fc6f64
More 4.0 work
...
svn path=/trunk/mcs/; revision=145674
2009-11-08 18:32:52 +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
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
Andreas N
b7ebfaf624
2008-07-03 Andreas Nahr <[email protected] >
...
* TextWriter.cs:
* StreamWriter.cs:
* StreamReader.cs:
* Stream.cs:
* MemoryStream.cs:
* File.cs:
* DriveNotFoundException.cs:
* Directory.cs: Fix parameter names
svn path=/trunk/mcs/; revision=107182
2008-07-03 20:00:51 +00:00
Sebastien Pouliot
981545c2e4
2008-02-03 Sebastien Pouliot <[email protected] >
...
* MemoryStream.cs: Remove unused code found by Gendarme.
svn path=/trunk/mcs/; revision=94700
2008-02-03 17:17:54 +00:00
Atsushi Eno
79faeec3d3
2007-09-06 Atsushi Enomoto <[email protected] >
...
* Stream.cs, BufferedStream.cs, MemoryStream.cs: in 2.0 override
Dispose(bool) rather than Close().
Stream.Dispose() is virtual in 2.0.
svn path=/trunk/mcs/; revision=85389
2007-09-06 05:18:18 +00:00
Dick Porter
bf9bb4bc89
2007-05-01 Dick Porter <[email protected] >
...
* File.cs:
* Stream.cs: Missed a few 2.0 methods
2007-05-01 Dick Porter <[email protected] >
* RegistryKeyPermissionCheck.cs: Not serializable
svn path=/trunk/mcs/; revision=76523
2007-05-01 11:08:28 +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
af5288379f
Fix indentation
...
svn path=/trunk/mcs/; revision=75323
2007-04-03 07:11:49 +00:00
Alp Toker
562e403345
2007-04-03 Alp Toker <[email protected] >
...
* Stream.cs: CreateWaitHandle() obsolete in 2.0.
svn path=/trunk/mcs/; revision=75322
2007-04-03 07:10:58 +00:00
Miguel de Icaza
dd113bd188
2006-03-21 Miguel de Icaza <[email protected] >
...
* Stream.cs: In 2.0 make Close call Dispose(true).
svn path=/trunk/mcs/; revision=58275
2006-03-22 01:17:14 +00:00
Carlos Alberto Cortez
51b41b41f5
2006-03-07 Carlos Alberto Cortez <[email protected] >
...
* Stream.cs: Add 2.0 members to Stream.cs (CanTimeout,
ReadTimeout and WriteTimeout).
svn path=/trunk/mcs/; revision=57684
2006-03-08 07:03:33 +00:00
Zoltan Varga
7329f6ac1a
2006-02-03 Zoltan Varga <[email protected] >
...
* Stream.cs FileStream.cs: Add new 2.0 Dispose () method and protected
Dispose (bool) method.
svn path=/trunk/mcs/; revision=56524
2006-02-03 14:12:07 +00:00
Raja R Harinath
e0cfa4925e
Set svn:eol-style=native, delete svn:executable.
...
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)
svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Gonzalo Paniagua Javier
2cd8400db6
2004-09-04 Gonzalo Paniagua Javier <[email protected] >
...
* Stream.cs: Close() does not call Flush(). Fixes bug #65340 .
svn path=/trunk/mcs/; revision=33356
2004-09-05 02:47:25 +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
Ben Maurer
58cd296e3f
oops
...
svn path=/trunk/mcs/; revision=26450
2004-04-30 20:09:01 +00:00
Ben Maurer
85154e396d
2004-04-30 Ben Maurer <[email protected] >
...
* BinaryWriter.cs, Stream.cs: ensure we have beforefieldinit.
svn path=/trunk/mcs/; revision=26449
2004-04-30 20:08:08 +00:00
Gonzalo Paniagua Javier
9d34f4d930
2004-03-15 Gonzalo Paniagua Javier <[email protected] >
...
* corlib.dll.sources: added StreamAsyncResult and FileStreamAsyncResult.
* System/Environment.cs: updated corlib version.
* System.IO/FileStream.cs: added support for asynchronous I/O without
using the OS native libraries if available.
* System.IO/FileStreamAsyncResult.cs: IAsyncResult for asynch. I/O.
* System.IO/MonoIO.cs: added BeginRead/Write, GetSupportsAsync. Open
has now a new parameter to tell ifthe file will be used for asynch.
operations.
* System.IO/Stream.cs: BeginRead/Write do not use delegates. They just
are actually synchronous.
* System.IO/StreamAsyncResult.cs: IAsyncResult for Stream.
* System.Threading/NativeOverlapped.cs: added 2 new internal fields.
* System.Threading/Overlapped.cs: implemented, but it's not used.
* System.Threading/ThreadPool.cs: implemented BindHandle.
svn path=/trunk/mcs/; revision=24069
2004-03-15 21:19:16 +00:00
Lluis Sanchez
965b3402a0
* BufferedStream.cs, FileStream.cs, MemoryStream.cs, Stream.cs:
...
Added [In,Out] attributes to Read method.
svn path=/trunk/mcs/; revision=18042
2003-09-11 23:44:33 +00:00
Dietmar Maurer
c321eaca0f
use delegate async invoke where posssible
...
svn path=/trunk/mcs/; revision=15684
2003-06-27 07:59:47 +00:00
Lawrence Pit
b89e81df04
* Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
...
prevent endless loops.
svn path=/trunk/mcs/; revision=4767
2002-05-19 16:46:48 +00:00
Piers Haken
9ce542217c
* Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
...
svn path=/trunk/mcs/; revision=4690
2002-05-16 13:44:04 +00:00
Piers Haken
9e63489461
Miscellaneous minor compliancy fixes:
...
* System/System/UriBuilder.cs: use visible EscapeString
* corlib/System.Reflection/ManifestResourceInfo.cs: constructor access, define fields
* corlib/System/Convert.cs: remove erroneous CLSCompliant attributes
* corlib/System/Math.cs: remove erroneous CLSCompliant attribute
Fix enum values:
* System/System.CodeDom/CodeBinaryOperatorType.cs
* System/System.Net.Sockets/ProtocolFamily.cs
* corlib/System.Globalization/CultureTypes.cs
* corlib/System.Reflection/FieldAttributes.cs
* corlib/System.Runtime.InteropServices/AssemblyRegistrationFlags.cs
* corlib/System.Security.Cryptography/CipherMode.cs
* corlib/System.Security.Cryptography/CspProviderFlags.cs
* corlib/System.Security.Cryptography/PaddingMode.cs
* corlib/System.Security.Permissions/IsolatedStorageContainment.cs
* corlib/System.Security.Permissions/ReflectionPermissionFlag.cs
* corlib/System.Security.Permissions/SecurityPermissionFlag.cs
* corlib/System.Security/PolicyLevelType.cs
* corlib/System.Security/SecurityZone.cs
* corlib/System/AttributeTargets.cs
* corlib/System/Environment.cs
Remove redundant overrides:
* corlib/System.Reflection.Emit/EnumBuilder.cs
* corlib/System.Reflection.Emit/TypeBuilder.cs
* corlib/System/MissingFieldException.cs
* corlib/System/MissingMemberException.cs
* corlib/System/MissingMethodException.cs
Fix visibility and access modifiers:
* System/System.CodeDom.Compiler/CodeGenerator.cs
* System/System.Collections.Specialized/NameObjectCollectionBase.cs
* System/System.Collections.Specialized/NameValueCollection.cs
* System/System.ComponentModel/EventDescriptor.cs
* System/System.ComponentModel/EventDescriptorCollection.cs
* System/System.Diagnostics/ProcessStartInfo.cs
* System/System.Net/DnsPermission.cs
* System/System.Net/SocketPermission.cs
* System/System/Uri.cs
* corlib/System.IO/StreamReader.cs
* corlib/System.IO/StringReader.cs
* corlib/System.IO/StringWriter.cs
* corlib/System.IO/TextWriter.cs
* corlib/System.Reflection.Emit/ConstructorBuilder.cs
* corlib/System.Reflection.Emit/MethodBuilder.cs
* corlib/System.Reflection.Emit/OpCodes.cs
* corlib/System.Reflection/Assembly.cs
* corlib/System.Runtime.Remoting.Messaging/ReturnMessage.cs
* corlib/System.Runtime.Serialization/SerializationException.cs
* corlib/System/Activator.cs
* corlib/System/Array.cs
* corlib/System/Boolean.cs
* corlib/System/Byte.cs
* corlib/System/Char.cs
* corlib/System/DateTime.cs
* corlib/System/DivideByZeroException.cs
* corlib/System/Double.cs
* corlib/System/Int16.cs
* corlib/System/Int32.cs
* corlib/System/Int64.cs
* corlib/System/SByte.cs
* corlib/System/Single.cs
* corlib/System/Type.cs
* corlib/System/UInt16.cs
* corlib/System/UInt32.cs
* corlib/System/UInt64.cs
Fix IDisposable, Dispose() mess
* corlib/System.IO/BinaryWriter.cs
* corlib/System.IO/BufferedStream.cs
* corlib/System.IO/FileStream.cs
* corlib/System.IO/MemoryStream.cs
* corlib/System.IO/Stream.cs
svn path=/trunk/mcs/; revision=4416
2002-05-08 13:21:13 +00:00
Piers Haken
7c1ac4e3a9
fixed base classes (and typos)
...
svn path=/trunk/mcs/; revision=3532
2002-04-01 08:10:13 +00:00
Miguel de Icaza
cc2a3182a4
Flush a set of pending changes:
...
2002-02-28 Miguel de Icaza <[email protected] >
* Stream.cs (NullStream): Do not track position, this beast does
nothing in practice.
2002-03-14 Miguel de Icaza <[email protected] >
* Array.cs: Add some extra debugging information.
svn path=/trunk/mcs/; revision=3147
2002-03-16 14:50:53 +00:00
Dick Porter
d5c948c036
2001-12-11 Dick Porter <[email protected] >
...
* Linux.cs: IO implemented with file handles with internal calls,
rather than casting file descriptors for C library p/invokes.
Implemented Get/Set Creation/LastAccess/LastWrite TimeFile
functions.
2001-12-11 Dick Porter <[email protected] >
* FileStream.cs: Use handles rather than casting file descriptors.
Added Handle property.
2001-12-11 Dick Porter <[email protected] >
* DateTime.cs: Implemented FromFileTime() and ToFileTime()
* Console.cs: Use handles rather than casting file descriptors
2001-12-11 Dick Porter <[email protected] >
* WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
internal calls.
svn path=/trunk/mcs/; revision=1557
2001-12-11 16:59:43 +00:00
Dietmar Maurer
a9cb3de8c9
added UnixWrapper, FileStream and Stream Class + various fixes
...
svn path=/trunk/mcs/; revision=501
2001-08-20 08:14:36 +00:00