Commit Graph
27 Commits
Author SHA1 Message Date
João Matos f39bebefea [System] Implemented .NET 4.5 overloads for GZipStream and DeflateStream.
Fixes xambug #21982.
2014-08-12 16:17:08 +01:00
marcos henrich 6a6631d883 Removed DeflateStream.UnmanagedRead Read loop. Fixes #19313.
If the base_stream was a NetworkStream UnmanagedRead loop would call base_stream.Read a second time and block until one byte was available to return. Without the loop UnmanagedRead will only read the base_stream once.
2014-06-02 08:22:33 +01:00
Marek Safar f81e067e01 Fixes GZipStream dispose order. Fixes #14032 2013-08-16 23:16:23 +02:00
Marek Safar f2524362fc Always release DeflateStream unmanaged resources. Fixes #13742 2013-08-08 10:29:05 +02:00
Martin Baulig 171c946ecd Add System.IO.Compression.FileSystem stubs. 2013-03-12 17:22:59 -04:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Jonathan Pryor 825512bff9 [monodroid] Look for zlib support functions from __Internal.
Partial fix for #660928; the rest of the fix will require embedding
the zlib functions within libmonodroid.so.
2011-01-07 11:59:44 -05:00
Gonzalo Paniagua Javier e8fee34fc7 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: the delegate uses Cdecl calling convention on
	windows too. Fixes bug #574713.


svn path=/trunk/mcs/; revision=155395
2010-04-14 14:17:29 +00:00
Gonzalo Paniagua Javier 32c96fedba 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: always use Cdecl, since the library is compiled
	using that calling convention in windows too.


svn path=/trunk/mcs/; revision=155017
2010-04-07 22:57:36 +00:00
Gonzalo Paniagua Javier cf0257d56c 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: don't call unmanaged code when the byte count
	is 0. Fixes bug #586870.


svn path=/trunk/mcs/; revision=153385
2010-03-10 04:46:25 +00:00
Geoff Norton bfd2f646b9 2009-12-23 Geoff Norton <[email protected]>
* DeflateStream.cs: Ensure our callbacks go into the correct
	static methods.

svn path=/trunk/mcs/; revision=148867
2009-12-23 17:05:08 +00:00
Geoff Norton 94769ddb14 fix monotouch build
svn path=/trunk/mcs/; revision=141980
2009-09-15 18:19:33 +00:00
Jonathan Pryor 77f951b6f1 * DeflateStream.cs: MonoTouch reverse callbacks need to be static
methods and be annotated with [MonoPInvokeCallback].  Get things
	  working with these limitations.

svn path=/trunk/mcs/; revision=141905
2009-09-14 18:25:28 +00:00
Geoff Norton d0774b2d66 fix thebuild on monotouch
svn path=/trunk/mcs/; revision=141692
2009-09-10 20:30:02 +00:00
Gonzalo Paniagua Javier faaad5d9b0 do not nullify deflateStream
svn path=/trunk/mcs/; revision=138301
2009-07-21 15:28:56 +00:00
Gonzalo Paniagua Javier 8c052b4698 2009-07-20 Gonzalo Paniagua Javier <[email protected]>
* GzipStream.cs: fixed Dispose (bool).
	* DeflateStream.cs: simplify the interface with unmanaged code, big
	reduction of managaed<->unmanaged round trips.
	Also fixes bug #523418.


svn path=/trunk/mcs/; revision=138252
2009-07-21 02:24:53 +00:00
Gert Driesen 6b10903f70 * DeflateStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Added test for bug #327480. Code formatting.
* GzipStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Code formatting.
* DeflateStream.cs: Avoid double free. Fixes bug #327480.

svn path=/trunk/mcs/; revision=86218
2007-09-22 16:50:02 +00:00
Miguel de Icaza 72be24a388 Fix signature, fixes bug 82019, patch from Jason Madden
svn path=/trunk/mcs/; revision=81493
2007-07-06 16:26:20 +00:00
Konstantin Triger 3a39a3277a remove TARGET_JVM defines
svn path=/trunk/mcs/; revision=72291
2007-02-05 12:33:17 +00:00
Zoltan Varga 7bca2efa27 2006-10-22 Zoltan Varga <[email protected]>
* DeflateStream.cs: Throw a more meaningfull exception when zlib initialization
	fails.

svn path=/trunk/mcs/; revision=66884
2006-10-22 14:19:49 +00:00
Andrew Skiba c1c57cd5c6 TARGET_JVM
svn path=/trunk/mcs/; revision=66041
2006-09-28 14:46:10 +00:00
Atsushi Eno 63723f518b 2006-04-04 Atsushi Enomoto <[email protected]>
* DeflateStream.cs GzipStream.cs : updated API to 2.0 RTM.
	  Dispose() should certainly release resources than the finalizer.


svn path=/trunk/mcs/; revision=58992
2006-04-04 00:45:46 +00:00
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
	used by us internally).

	Ponder: should we instead move our methods to use new versions of
	the Obsoleted ones?

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeNamespaceImportCollection.cs: It turns out that a lot of the
	errors flagged with "!" were just missing explicit interface
	implementations.  

	Implement.

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeDomConfigurationHandler.cs: Comment out unused methods. 

	* TempFileCollection.cs: Implement explicitly some interface
	methods to get rid of the "!" errors on CorCompare.

2006-03-11  Miguel de Icaza  <[email protected]>

	* Queue.cs: Flag as serializable.

	* LinkedList.cs (OnDeserialization): Fix signature. 

	* SortedList.cs: Implement explicitly a few methods that were
	flagged by corcompare. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
	avoid warning.

2006-03-11  Miguel de Icaza  <[email protected]>

	* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
	internal to avoid warnings.  This routine is called from
	System.Web with MethodInfo.Invoke.

2006-03-11  Miguel de Icaza  <[email protected]>

	* DeflateStream.cs: Comment out DllImport that was not being
	used. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* y

	* SerialPort.cs: Remove unused variable (writeBuffer). 

	* SerialPortStream.cs (Dispose): override, not new.

2006-03-11  Miguel de Icaza  <[email protected]>

	* WebClient.cs: Only expose the right methods to avoid warnings. 

	* FtpDataStream.cs (Dispose): Fix signature.

	* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
	like we are missing features here).

	* IPAddress.cs: Move m_HashCode property to the end, and set
	pragmas to disable warnings.

2006-03-11  Miguel de Icaza  <[email protected]>

	* MailAddress.cs: Comment out unused field to remove warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkChange.cs: Use pragmas to eliminate warnings from events
	that we do not trigger yet.

	This is a candidate for using Aaron's NetworkManager code.  But
	would make us depend on d-bus.

	* NetworkInformationException.cs: Use error_code for ErrorCode,
	instead of NativeErrorCode.   Fixes warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
	need to do this everywhere one day).

	(Close): actually obey the "leaveInnerStreamOpen" setting from the
	constructor. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkStream.cs (Dispose): Use the right signature depending on
	the profile being built.

2006-03-11  Miguel de Icaza  <[email protected]>

	* X509Chain.cs: Flagged member as internal to avoid unused warning.

	* X500DistinguishedName.cs: Comment out unused names and move
	temporary unused variables inside the comments that were removed 



svn path=/trunk/mcs/; revision=57836
2006-03-11 19:07:56 +00:00
Sebastien Pouliot 2b2e8bcdd9 2005-05-18 Sebastien Pouliot <[email protected]>
* DeflateStream.cs: Fixed some changed/missing exceptions.
	* GzipStream.cs: Renamed to GZipStream (from beta2).


svn path=/trunk/mcs/; revision=44714
2005-05-18 19:40:02 +00:00
Raja R Harinath ebd4a7df44 In Test:
* System.IO.Compression/GzipStreamTest.cs: Fix compile errors.
	* System.IO.Compression/GzipStreamTest.cs: Likewise.

In System.IO.Compression:
	* DeflateStream.cs, GzipStream.cs, CompressionMode.cs: Make class public.

svn path=/trunk/mcs/; revision=37025
2004-12-03 15:11:36 +00:00
Martin Baulig d1c2d41338 2004-11-10 Martin Baulig <martin@localhost>
* DeflateStream.cs, GzipStream.cs: `System.IO.Stream.Length' doesn't
	have any setter.

svn path=/trunk/mcs/; revision=35951
2004-11-10 06:48:55 +00:00
Miguel de Icaza ff0d74eeb5 Add System.IO.Compression from Chris Lahey ([email protected])
svn path=/trunk/mcs/; revision=34610
2004-10-02 18:48:07 +00:00