summaryrefslogtreecommitdiff
path: root/contrib/dotzlib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dotzlib')
-rw-r--r--contrib/dotzlib/DotZLib.build4
-rw-r--r--contrib/dotzlib/DotZLib.chmbin72728 -> 72726 bytes
-rw-r--r--contrib/dotzlib/DotZLib/AssemblyInfo.cs20
-rw-r--r--contrib/dotzlib/DotZLib/ChecksumImpl.cs10
-rw-r--r--contrib/dotzlib/DotZLib/CircularBuffer.cs4
-rw-r--r--contrib/dotzlib/DotZLib/CodecBase.cs8
-rw-r--r--contrib/dotzlib/DotZLib/Deflater.cs6
-rw-r--r--contrib/dotzlib/DotZLib/DotZLib.cs20
-rw-r--r--contrib/dotzlib/DotZLib/GZipStream.cs18
-rw-r--r--contrib/dotzlib/DotZLib/Inflater.cs6
-rw-r--r--contrib/dotzlib/DotZLib/UnitTests.cs4
-rw-r--r--contrib/dotzlib/readme.txt18
12 files changed, 59 insertions, 59 deletions
diff --git a/contrib/dotzlib/DotZLib.build b/contrib/dotzlib/DotZLib.build
index ed19cc9..7f90d6b 100644
--- a/contrib/dotzlib/DotZLib.build
+++ b/contrib/dotzlib/DotZLib.build
@@ -4,7 +4,7 @@
4 4
5 <property name="nunit.location" value="c:/program files/NUnit V2.1/bin" /> 5 <property name="nunit.location" value="c:/program files/NUnit V2.1/bin" />
6 <property name="build.root" value="bin" /> 6 <property name="build.root" value="bin" />
7 7
8 <property name="debug" value="true" /> 8 <property name="debug" value="true" />
9 <property name="nunit" value="true" /> 9 <property name="nunit" value="true" />
10 10
@@ -16,7 +16,7 @@
16 </target> 16 </target>
17 17
18 <target name="build" description="compiles the source code"> 18 <target name="build" description="compiles the source code">
19 19
20 <mkdir dir="${build.folder}" /> 20 <mkdir dir="${build.folder}" />
21 <csc target="library" output="${build.folder}DotZLib.dll" debug="${debug}"> 21 <csc target="library" output="${build.folder}DotZLib.dll" debug="${debug}">
22 <references basedir="${nunit.location}"> 22 <references basedir="${nunit.location}">
diff --git a/contrib/dotzlib/DotZLib.chm b/contrib/dotzlib/DotZLib.chm
index 0bc7df7..f214a44 100644
--- a/contrib/dotzlib/DotZLib.chm
+++ b/contrib/dotzlib/DotZLib.chm
Binary files differ
diff --git a/contrib/dotzlib/DotZLib/AssemblyInfo.cs b/contrib/dotzlib/DotZLib/AssemblyInfo.cs
index 6fc0fdc..0491bfc 100644
--- a/contrib/dotzlib/DotZLib/AssemblyInfo.cs
+++ b/contrib/dotzlib/DotZLib/AssemblyInfo.cs
@@ -2,7 +2,7 @@ using System.Reflection;
2using System.Runtime.CompilerServices; 2using System.Runtime.CompilerServices;
3 3
4// 4//
5// General Information about an assembly is controlled through the following 5// General Information about an assembly is controlled through the following
6// set of attributes. Change these attribute values to modify the information 6// set of attributes. Change these attribute values to modify the information
7// associated with an assembly. 7// associated with an assembly.
8// 8//
@@ -13,42 +13,42 @@ using System.Runtime.CompilerServices;
13[assembly: AssemblyProduct("")] 13[assembly: AssemblyProduct("")]
14[assembly: AssemblyCopyright("(c) 2004 by Henrik Ravn")] 14[assembly: AssemblyCopyright("(c) 2004 by Henrik Ravn")]
15[assembly: AssemblyTrademark("")] 15[assembly: AssemblyTrademark("")]
16[assembly: AssemblyCulture("")] 16[assembly: AssemblyCulture("")]
17 17
18// 18//
19// Version information for an assembly consists of the following four values: 19// Version information for an assembly consists of the following four values:
20// 20//
21// Major Version 21// Major Version
22// Minor Version 22// Minor Version
23// Build Number 23// Build Number
24// Revision 24// Revision
25// 25//
26// You can specify all the values or you can default the Revision and Build Numbers 26// You can specify all the values or you can default the Revision and Build Numbers
27// by using the '*' as shown below: 27// by using the '*' as shown below:
28 28
29[assembly: AssemblyVersion("1.0.*")] 29[assembly: AssemblyVersion("1.0.*")]
30 30
31// 31//
32// In order to sign your assembly you must specify a key to use. Refer to the 32// In order to sign your assembly you must specify a key to use. Refer to the
33// Microsoft .NET Framework documentation for more information on assembly signing. 33// Microsoft .NET Framework documentation for more information on assembly signing.
34// 34//
35// Use the attributes below to control which key is used for signing. 35// Use the attributes below to control which key is used for signing.
36// 36//
37// Notes: 37// Notes:
38// (*) If no key is specified, the assembly is not signed. 38// (*) If no key is specified, the assembly is not signed.
39// (*) KeyName refers to a key that has been installed in the Crypto Service 39// (*) KeyName refers to a key that has been installed in the Crypto Service
40// Provider (CSP) on your machine. KeyFile refers to a file which contains 40// Provider (CSP) on your machine. KeyFile refers to a file which contains
41// a key. 41// a key.
42// (*) If the KeyFile and the KeyName values are both specified, the 42// (*) If the KeyFile and the KeyName values are both specified, the
43// following processing occurs: 43// following processing occurs:
44// (1) If the KeyName can be found in the CSP, that key is used. 44// (1) If the KeyName can be found in the CSP, that key is used.
45// (2) If the KeyName does not exist and the KeyFile does exist, the key 45// (2) If the KeyName does not exist and the KeyFile does exist, the key
46// in the KeyFile is installed into the CSP and used. 46// in the KeyFile is installed into the CSP and used.
47// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 47// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
48// When specifying the KeyFile, the location of the KeyFile should be 48// When specifying the KeyFile, the location of the KeyFile should be
49// relative to the project output directory which is 49// relative to the project output directory which is
50// %Project Directory%\obj\<configuration>. For example, if your KeyFile is 50// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
51// located in the project directory, you would specify the AssemblyKeyFile 51// located in the project directory, you would specify the AssemblyKeyFile
52// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 52// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
53// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 53// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
54// documentation for more information on this. 54// documentation for more information on this.
diff --git a/contrib/dotzlib/DotZLib/ChecksumImpl.cs b/contrib/dotzlib/DotZLib/ChecksumImpl.cs
index dfe7e90..788b2fc 100644
--- a/contrib/dotzlib/DotZLib/ChecksumImpl.cs
+++ b/contrib/dotzlib/DotZLib/ChecksumImpl.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -25,7 +25,7 @@ namespace DotZLib
25 protected uint _current; 25 protected uint _current;
26 26
27 /// <summary> 27 /// <summary>
28 /// Initializes a new instance of the checksum generator base - the current checksum is 28 /// Initializes a new instance of the checksum generator base - the current checksum is
29 /// set to zero 29 /// set to zero
30 /// </summary> 30 /// </summary>
31 public ChecksumGeneratorBase() 31 public ChecksumGeneratorBase()
@@ -61,7 +61,7 @@ namespace DotZLib
61 /// <exception cref="ArgumentException">The sum of offset and count is larger than the length of <c>data</c></exception> 61 /// <exception cref="ArgumentException">The sum of offset and count is larger than the length of <c>data</c></exception>
62 /// <exception cref="NullReferenceException"><c>data</c> is a null reference</exception> 62 /// <exception cref="NullReferenceException"><c>data</c> is a null reference</exception>
63 /// <exception cref="ArgumentOutOfRangeException">Offset or count is negative.</exception> 63 /// <exception cref="ArgumentOutOfRangeException">Offset or count is negative.</exception>
64 /// <remarks>All the other <c>Update</c> methods are implmeneted in terms of this one. 64 /// <remarks>All the other <c>Update</c> methods are implmeneted in terms of this one.
65 /// This is therefore the only method a derived class has to implement</remarks> 65 /// This is therefore the only method a derived class has to implement</remarks>
66 public abstract void Update(byte[] data, int offset, int count); 66 public abstract void Update(byte[] data, int offset, int count);
67 67
@@ -101,7 +101,7 @@ namespace DotZLib
101 /// <summary> 101 /// <summary>
102 /// Implements a CRC32 checksum generator 102 /// Implements a CRC32 checksum generator
103 /// </summary> 103 /// </summary>
104 public sealed class CRC32Checksum : ChecksumGeneratorBase 104 public sealed class CRC32Checksum : ChecksumGeneratorBase
105 { 105 {
106 #region DLL imports 106 #region DLL imports
107 107
@@ -152,7 +152,7 @@ namespace DotZLib
152 /// <summary> 152 /// <summary>
153 /// Implements a checksum generator that computes the Adler checksum on data 153 /// Implements a checksum generator that computes the Adler checksum on data
154 /// </summary> 154 /// </summary>
155 public sealed class AdlerChecksum : ChecksumGeneratorBase 155 public sealed class AdlerChecksum : ChecksumGeneratorBase
156 { 156 {
157 #region DLL imports 157 #region DLL imports
158 158
diff --git a/contrib/dotzlib/DotZLib/CircularBuffer.cs b/contrib/dotzlib/DotZLib/CircularBuffer.cs
index 16997e9..c1cab3a 100644
--- a/contrib/dotzlib/DotZLib/CircularBuffer.cs
+++ b/contrib/dotzlib/DotZLib/CircularBuffer.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -25,7 +25,7 @@ namespace DotZLib
25 #endregion 25 #endregion
26 26
27 public CircularBuffer(int capacity) 27 public CircularBuffer(int capacity)
28 { 28 {
29 Debug.Assert( capacity > 0 ); 29 Debug.Assert( capacity > 0 );
30 _buffer = new byte[capacity]; 30 _buffer = new byte[capacity];
31 _capacity = capacity; 31 _capacity = capacity;
diff --git a/contrib/dotzlib/DotZLib/CodecBase.cs b/contrib/dotzlib/DotZLib/CodecBase.cs
index 954db7d..42e6da3 100644
--- a/contrib/dotzlib/DotZLib/CodecBase.cs
+++ b/contrib/dotzlib/DotZLib/CodecBase.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -19,7 +19,7 @@ namespace DotZLib
19 #region Data members 19 #region Data members
20 20
21 /// <summary> 21 /// <summary>
22 /// Instance of the internal zlib buffer structure that is 22 /// Instance of the internal zlib buffer structure that is
23 /// passed to all functions in the zlib dll 23 /// passed to all functions in the zlib dll
24 /// </summary> 24 /// </summary>
25 internal ZStream _ztream = new ZStream(); 25 internal ZStream _ztream = new ZStream();
@@ -45,7 +45,7 @@ namespace DotZLib
45 #endregion 45 #endregion
46 46
47 /// <summary> 47 /// <summary>
48 /// Initializes a new instance of the <c>CodeBase</c> class. 48 /// Initializes a new instance of the <c>CodeBase</c> class.
49 /// </summary> 49 /// </summary>
50 public CodecBase() 50 public CodecBase()
51 { 51 {
@@ -77,7 +77,7 @@ namespace DotZLib
77 if (_ztream.total_out > 0) 77 if (_ztream.total_out > 0)
78 { 78 {
79 if (DataAvailable != null) 79 if (DataAvailable != null)
80 DataAvailable( _outBuffer, 0, (int)_ztream.total_out); 80 DataAvailable( _outBuffer, 0, (int)_ztream.total_out);
81 resetOutput(); 81 resetOutput();
82 } 82 }
83 } 83 }
diff --git a/contrib/dotzlib/DotZLib/Deflater.cs b/contrib/dotzlib/DotZLib/Deflater.cs
index d7b8dcc..c247792 100644
--- a/contrib/dotzlib/DotZLib/Deflater.cs
+++ b/contrib/dotzlib/DotZLib/Deflater.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -56,7 +56,7 @@ namespace DotZLib
56 if (data == null) throw new ArgumentNullException(); 56 if (data == null) throw new ArgumentNullException();
57 if (offset < 0 || count < 0) throw new ArgumentOutOfRangeException(); 57 if (offset < 0 || count < 0) throw new ArgumentOutOfRangeException();
58 if ((offset+count) > data.Length) throw new ArgumentException(); 58 if ((offset+count) > data.Length) throw new ArgumentException();
59 59
60 int total = count; 60 int total = count;
61 int inputIndex = offset; 61 int inputIndex = offset;
62 int err = 0; 62 int err = 0;
@@ -86,7 +86,7 @@ namespace DotZLib
86 public override void Finish() 86 public override void Finish()
87 { 87 {
88 int err; 88 int err;
89 do 89 do
90 { 90 {
91 err = deflate(ref _ztream, (int)FlushTypes.Finish); 91 err = deflate(ref _ztream, (int)FlushTypes.Finish);
92 OnDataAvailable(); 92 OnDataAvailable();
diff --git a/contrib/dotzlib/DotZLib/DotZLib.cs b/contrib/dotzlib/DotZLib/DotZLib.cs
index 410deb0..be184b4 100644
--- a/contrib/dotzlib/DotZLib/DotZLib.cs
+++ b/contrib/dotzlib/DotZLib/DotZLib.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -19,7 +19,7 @@ namespace DotZLib
19 /// <summary> 19 /// <summary>
20 /// Defines constants for the various flush types used with zlib 20 /// Defines constants for the various flush types used with zlib
21 /// </summary> 21 /// </summary>
22 internal enum FlushTypes 22 internal enum FlushTypes
23 { 23 {
24 None, Partial, Sync, Full, Finish, Block 24 None, Partial, Sync, Full, Finish, Block
25 } 25 }
@@ -38,7 +38,7 @@ namespace DotZLib
38 public uint total_out; 38 public uint total_out;
39 39
40 [MarshalAs(UnmanagedType.LPStr)] 40 [MarshalAs(UnmanagedType.LPStr)]
41 string msg; 41 string msg;
42 uint state; 42 uint state;
43 43
44 uint zalloc; 44 uint zalloc;
@@ -51,7 +51,7 @@ namespace DotZLib
51 } 51 }
52 52
53 #endregion 53 #endregion
54 54
55 #endregion 55 #endregion
56 56
57 #region Public enums 57 #region Public enums
@@ -63,7 +63,7 @@ namespace DotZLib
63 /// <summary> 63 /// <summary>
64 /// The default compression level with a reasonable compromise between compression and speed 64 /// The default compression level with a reasonable compromise between compression and speed
65 /// </summary> 65 /// </summary>
66 Default = -1, 66 Default = -1,
67 /// <summary> 67 /// <summary>
68 /// No compression at all. The data are passed straight through. 68 /// No compression at all. The data are passed straight through.
69 /// </summary> 69 /// </summary>
@@ -71,7 +71,7 @@ namespace DotZLib
71 /// <summary> 71 /// <summary>
72 /// The maximum compression rate available. 72 /// The maximum compression rate available.
73 /// </summary> 73 /// </summary>
74 Best = 9, 74 Best = 9,
75 /// <summary> 75 /// <summary>
76 /// The fastest available compression level. 76 /// The fastest available compression level.
77 /// </summary> 77 /// </summary>
@@ -86,7 +86,7 @@ namespace DotZLib
86 public class ZLibException : ApplicationException 86 public class ZLibException : ApplicationException
87 { 87 {
88 /// <summary> 88 /// <summary>
89 /// Initializes a new instance of the <see cref="ZLibException"/> class with a specified 89 /// Initializes a new instance of the <see cref="ZLibException"/> class with a specified
90 /// error message and error code 90 /// error message and error code
91 /// </summary> 91 /// </summary>
92 /// <param name="errorCode">The zlib error code that caused the exception</param> 92 /// <param name="errorCode">The zlib error code that caused the exception</param>
@@ -96,7 +96,7 @@ namespace DotZLib
96 } 96 }
97 97
98 /// <summary> 98 /// <summary>
99 /// Initializes a new instance of the <see cref="ZLibException"/> class with a specified 99 /// Initializes a new instance of the <see cref="ZLibException"/> class with a specified
100 /// error code 100 /// error code
101 /// </summary> 101 /// </summary>
102 /// <param name="errorCode">The zlib error code that caused the exception</param> 102 /// <param name="errorCode">The zlib error code that caused the exception</param>
@@ -109,7 +109,7 @@ namespace DotZLib
109 #region Interfaces 109 #region Interfaces
110 110
111 /// <summary> 111 /// <summary>
112 /// Declares methods and properties that enables a running checksum to be calculated 112 /// Declares methods and properties that enables a running checksum to be calculated
113 /// </summary> 113 /// </summary>
114 public interface ChecksumGenerator 114 public interface ChecksumGenerator
115 { 115 {
@@ -163,7 +163,7 @@ namespace DotZLib
163 /// <paramref name="data">The byte array containing the processed data</paramref> 163 /// <paramref name="data">The byte array containing the processed data</paramref>
164 /// <paramref name="startIndex">The index of the first processed byte in <c>data</c></paramref> 164 /// <paramref name="startIndex">The index of the first processed byte in <c>data</c></paramref>
165 /// <paramref name="count">The number of processed bytes available</paramref> 165 /// <paramref name="count">The number of processed bytes available</paramref>
166 /// <remarks>On return from this method, the data may be overwritten, so grab it while you can. 166 /// <remarks>On return from this method, the data may be overwritten, so grab it while you can.
167 /// You cannot assume that startIndex will be zero. 167 /// You cannot assume that startIndex will be zero.
168 /// </remarks> 168 /// </remarks>
169 public delegate void DataAvailableHandler(byte[] data, int startIndex, int count); 169 public delegate void DataAvailableHandler(byte[] data, int startIndex, int count);
diff --git a/contrib/dotzlib/DotZLib/GZipStream.cs b/contrib/dotzlib/DotZLib/GZipStream.cs
index f861675..b161300 100644
--- a/contrib/dotzlib/DotZLib/GZipStream.cs
+++ b/contrib/dotzlib/DotZLib/GZipStream.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -84,7 +84,7 @@ namespace DotZLib
84 return !_isWriting; 84 return !_isWriting;
85 } 85 }
86 } 86 }
87 87
88 88
89 /// <summary> 89 /// <summary>
90 /// Returns false. 90 /// Returns false.
@@ -96,7 +96,7 @@ namespace DotZLib
96 return false; 96 return false;
97 } 97 }
98 } 98 }
99 99
100 /// <summary> 100 /// <summary>
101 /// Returns true if this tsream is writeable, false otherwise 101 /// Returns true if this tsream is writeable, false otherwise
102 /// </summary> 102 /// </summary>
@@ -108,7 +108,7 @@ namespace DotZLib
108 } 108 }
109 } 109 }
110 #endregion 110 #endregion
111 111
112 #region Destructor & IDispose stuff 112 #region Destructor & IDispose stuff
113 113
114 /// <summary> 114 /// <summary>
@@ -137,7 +137,7 @@ namespace DotZLib
137 } 137 }
138 } 138 }
139 #endregion 139 #endregion
140 140
141 #region Basic reading and writing 141 #region Basic reading and writing
142 /// <summary> 142 /// <summary>
143 /// Attempts to read a number of bytes from the stream. 143 /// Attempts to read a number of bytes from the stream.
@@ -244,7 +244,7 @@ namespace DotZLib
244 { 244 {
245 throw new NotSupportedException(); 245 throw new NotSupportedException();
246 } 246 }
247 247
248 /// <summary> 248 /// <summary>
249 /// Not suppported. 249 /// Not suppported.
250 /// </summary> 250 /// </summary>
@@ -256,7 +256,7 @@ namespace DotZLib
256 { 256 {
257 throw new NotSupportedException(); 257 throw new NotSupportedException();
258 } 258 }
259 259
260 /// <summary> 260 /// <summary>
261 /// Flushes the <c>GZipStream</c>. 261 /// Flushes the <c>GZipStream</c>.
262 /// </summary> 262 /// </summary>
@@ -266,7 +266,7 @@ namespace DotZLib
266 { 266 {
267 // left empty on purpose 267 // left empty on purpose
268 } 268 }
269 269
270 /// <summary> 270 /// <summary>
271 /// Gets/sets the current position in the <c>GZipStream</c>. Not suppported. 271 /// Gets/sets the current position in the <c>GZipStream</c>. Not suppported.
272 /// </summary> 272 /// </summary>
@@ -283,7 +283,7 @@ namespace DotZLib
283 throw new NotSupportedException(); 283 throw new NotSupportedException();
284 } 284 }
285 } 285 }
286 286
287 /// <summary> 287 /// <summary>
288 /// Gets the size of the stream. Not suppported. 288 /// Gets the size of the stream. Not suppported.
289 /// </summary> 289 /// </summary>
diff --git a/contrib/dotzlib/DotZLib/Inflater.cs b/contrib/dotzlib/DotZLib/Inflater.cs
index 4e60cda..8ed5451 100644
--- a/contrib/dotzlib/DotZLib/Inflater.cs
+++ b/contrib/dotzlib/DotZLib/Inflater.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
11 11
12namespace DotZLib 12namespace DotZLib
13{ 13{
14 14
15 /// <summary> 15 /// <summary>
16 /// Implements a data decompressor, using the inflate algorithm in the ZLib dll 16 /// Implements a data decompressor, using the inflate algorithm in the ZLib dll
17 /// </summary> 17 /// </summary>
@@ -84,7 +84,7 @@ namespace DotZLib
84 public override void Finish() 84 public override void Finish()
85 { 85 {
86 int err; 86 int err;
87 do 87 do
88 { 88 {
89 err = inflate(ref _ztream, (int)FlushTypes.Finish); 89 err = inflate(ref _ztream, (int)FlushTypes.Finish);
90 OnDataAvailable(); 90 OnDataAvailable();
diff --git a/contrib/dotzlib/DotZLib/UnitTests.cs b/contrib/dotzlib/DotZLib/UnitTests.cs
index 8dc00db..eb751bb 100644
--- a/contrib/dotzlib/DotZLib/UnitTests.cs
+++ b/contrib/dotzlib/DotZLib/UnitTests.cs
@@ -1,7 +1,7 @@
1// 1//
2// © Copyright Henrik Ravn 2004 2// © Copyright Henrik Ravn 2004
3// 3//
4// Use, modification and distribution are subject to the Boost Software License, Version 1.0. 4// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6// 6//
7 7
@@ -225,7 +225,7 @@ namespace DotZLibTests
225 225
226 [Test] 226 [Test]
227 public void Inflate_Expand() 227 public void Inflate_Expand()
228 { 228 {
229 uncompressedData.Clear(); 229 uncompressedData.Clear();
230 230
231 using (Inflater inf = new Inflater()) 231 using (Inflater inf = new Inflater())
diff --git a/contrib/dotzlib/readme.txt b/contrib/dotzlib/readme.txt
index 210f4b0..b239572 100644
--- a/contrib/dotzlib/readme.txt
+++ b/contrib/dotzlib/readme.txt
@@ -1,6 +1,6 @@
1This directory contains a .Net wrapper class library for the ZLib1.dll 1This directory contains a .Net wrapper class library for the ZLib1.dll
2 2
3The wrapper includes support for inflating/deflating memory buffers, 3The wrapper includes support for inflating/deflating memory buffers,
4.Net streaming wrappers for the gz streams part of zlib, and wrappers 4.Net streaming wrappers for the gz streams part of zlib, and wrappers
5for the checksum parts of zlib. See DotZLib/UnitTests.cs for examples. 5for the checksum parts of zlib. See DotZLib/UnitTests.cs for examples.
6 6
@@ -26,11 +26,11 @@ Build instructions:
26 26
271. Using Visual Studio.Net 2003: 271. Using Visual Studio.Net 2003:
28 Open DotZLib.sln in VS.Net and build from there. Output file (DotZLib.dll) 28 Open DotZLib.sln in VS.Net and build from there. Output file (DotZLib.dll)
29 will be found ./DotZLib/bin/release or ./DotZLib/bin/debug, depending on 29 will be found ./DotZLib/bin/release or ./DotZLib/bin/debug, depending on
30 you are building the release or debug version of the library. Check 30 you are building the release or debug version of the library. Check
31 DotZLib/UnitTests.cs for instructions on how to include unit tests in the 31 DotZLib/UnitTests.cs for instructions on how to include unit tests in the
32 build. 32 build.
33 33
342. Using NAnt: 342. Using NAnt:
35 Open a command prompt with access to the build environment and run nant 35 Open a command prompt with access to the build environment and run nant
36 in the same directory as the DotZLib.build file. 36 in the same directory as the DotZLib.build file.
@@ -38,15 +38,15 @@ Build instructions:
38 debug={true|false} to toggle between release/debug builds (default=true). 38 debug={true|false} to toggle between release/debug builds (default=true).
39 nunit={true|false} to include or esclude unit tests (default=true). 39 nunit={true|false} to include or esclude unit tests (default=true).
40 Also the target clean will remove binaries. 40 Also the target clean will remove binaries.
41 Output file (DotZLib.dll) will be found in either ./DotZLib/bin/release 41 Output file (DotZLib.dll) will be found in either ./DotZLib/bin/release
42 or ./DotZLib/bin/debug, depending on whether you are building the release 42 or ./DotZLib/bin/debug, depending on whether you are building the release
43 or debug version of the library. 43 or debug version of the library.
44 44
45 Examples: 45 Examples:
46 nant -D:debug=false -D:nunit=false 46 nant -D:debug=false -D:nunit=false
47 will build a release mode version of the library without unit tests. 47 will build a release mode version of the library without unit tests.
48 nant 48 nant
49 will build a debug version of the library with unit tests 49 will build a debug version of the library with unit tests
50 nant clean 50 nant clean
51 will remove all previously built files. 51 will remove all previously built files.
52 52
@@ -54,5 +54,5 @@ Build instructions:
54--------------------------------- 54---------------------------------
55Copyright (c) Henrik Ravn 2004 55Copyright (c) Henrik Ravn 2004
56 56
57Use, modification and distribution are subject to the Boost Software License, Version 1.0. 57Use, modification and distribution are subject to the Boost Software License, Version 1.0.
58(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 58(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)