From 4995d2149840f46580229ae962d55ef4e45d6566 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 28 Oct 2005 07:22:44 +0000 Subject: Import from zlib-1.2.4 --- cpukit/zlib/contrib/dotzlib/DotZLib/Deflater.cs | 6 +++--- cpukit/zlib/contrib/dotzlib/DotZLib/DotZLib.cs | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'cpukit') diff --git a/cpukit/zlib/contrib/dotzlib/DotZLib/Deflater.cs b/cpukit/zlib/contrib/dotzlib/DotZLib/Deflater.cs index d7b8dcccac..c2477925b6 100644 --- a/cpukit/zlib/contrib/dotzlib/DotZLib/Deflater.cs +++ b/cpukit/zlib/contrib/dotzlib/DotZLib/Deflater.cs @@ -1,7 +1,7 @@ // // © Copyright Henrik Ravn 2004 // -// Use, modification and distribution are subject to the Boost Software License, Version 1.0. +// Use, modification and distribution are subject to the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -56,7 +56,7 @@ namespace DotZLib if (data == null) throw new ArgumentNullException(); if (offset < 0 || count < 0) throw new ArgumentOutOfRangeException(); if ((offset+count) > data.Length) throw new ArgumentException(); - + int total = count; int inputIndex = offset; int err = 0; @@ -86,7 +86,7 @@ namespace DotZLib public override void Finish() { int err; - do + do { err = deflate(ref _ztream, (int)FlushTypes.Finish); OnDataAvailable(); diff --git a/cpukit/zlib/contrib/dotzlib/DotZLib/DotZLib.cs b/cpukit/zlib/contrib/dotzlib/DotZLib/DotZLib.cs index 410deb0885..be184b4c71 100644 --- a/cpukit/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +++ b/cpukit/zlib/contrib/dotzlib/DotZLib/DotZLib.cs @@ -1,7 +1,7 @@ // // © Copyright Henrik Ravn 2004 // -// Use, modification and distribution are subject to the Boost Software License, Version 1.0. +// Use, modification and distribution are subject to the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -19,7 +19,7 @@ namespace DotZLib /// /// Defines constants for the various flush types used with zlib /// - internal enum FlushTypes + internal enum FlushTypes { None, Partial, Sync, Full, Finish, Block } @@ -38,7 +38,7 @@ namespace DotZLib public uint total_out; [MarshalAs(UnmanagedType.LPStr)] - string msg; + string msg; uint state; uint zalloc; @@ -51,7 +51,7 @@ namespace DotZLib } #endregion - + #endregion #region Public enums @@ -63,7 +63,7 @@ namespace DotZLib /// /// The default compression level with a reasonable compromise between compression and speed /// - Default = -1, + Default = -1, /// /// No compression at all. The data are passed straight through. /// @@ -71,7 +71,7 @@ namespace DotZLib /// /// The maximum compression rate available. /// - Best = 9, + Best = 9, /// /// The fastest available compression level. /// @@ -86,7 +86,7 @@ namespace DotZLib public class ZLibException : ApplicationException { /// - /// Initializes a new instance of the class with a specified + /// Initializes a new instance of the class with a specified /// error message and error code /// /// The zlib error code that caused the exception @@ -96,7 +96,7 @@ namespace DotZLib } /// - /// Initializes a new instance of the class with a specified + /// Initializes a new instance of the class with a specified /// error code /// /// The zlib error code that caused the exception @@ -109,7 +109,7 @@ namespace DotZLib #region Interfaces /// - /// Declares methods and properties that enables a running checksum to be calculated + /// Declares methods and properties that enables a running checksum to be calculated /// public interface ChecksumGenerator { @@ -163,7 +163,7 @@ namespace DotZLib /// The byte array containing the processed data /// The index of the first processed byte in data /// The number of processed bytes available - /// On return from this method, the data may be overwritten, so grab it while you can. + /// On return from this method, the data may be overwritten, so grab it while you can. /// You cannot assume that startIndex will be zero. /// public delegate void DataAvailableHandler(byte[] data, int startIndex, int count); -- cgit v1.2.3