Changeset 4995d21 in rtems
- Timestamp:
- Oct 28, 2005, 7:22:44 AM (15 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 654a869, 7c66a0d
- Parents:
- 3a7bfc1e
- Location:
- cpukit/zlib/contrib/dotzlib/DotZLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/zlib/contrib/dotzlib/DotZLib/Deflater.cs
r3a7bfc1e r4995d21 2 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 5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 6 // … … 57 57 if (offset < 0 || count < 0) throw new ArgumentOutOfRangeException(); 58 58 if ((offset+count) > data.Length) throw new ArgumentException(); 59 59 60 60 int total = count; 61 61 int inputIndex = offset; … … 87 87 { 88 88 int err; 89 do 89 do 90 90 { 91 91 err = deflate(ref _ztream, (int)FlushTypes.Finish); -
cpukit/zlib/contrib/dotzlib/DotZLib/DotZLib.cs
r3a7bfc1e r4995d21 2 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 5 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 6 // … … 20 20 /// Defines constants for the various flush types used with zlib 21 21 /// </summary> 22 internal enum FlushTypes 22 internal enum FlushTypes 23 23 { 24 24 None, Partial, Sync, Full, Finish, Block … … 39 39 40 40 [MarshalAs(UnmanagedType.LPStr)] 41 string msg; 41 string msg; 42 42 uint state; 43 43 … … 52 52 53 53 #endregion 54 54 55 55 #endregion 56 56 … … 64 64 /// The default compression level with a reasonable compromise between compression and speed 65 65 /// </summary> 66 Default = -1, 66 Default = -1, 67 67 /// <summary> 68 68 /// No compression at all. The data are passed straight through. … … 72 72 /// The maximum compression rate available. 73 73 /// </summary> 74 Best = 9, 74 Best = 9, 75 75 /// <summary> 76 76 /// The fastest available compression level. … … 87 87 { 88 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 90 /// error message and error code 91 91 /// </summary> … … 97 97 98 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 100 /// error code 101 101 /// </summary> … … 110 110 111 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 113 /// </summary> 114 114 public interface ChecksumGenerator … … 164 164 /// <paramref name="startIndex">The index of the first processed byte in <c>data</c></paramref> 165 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 167 /// You cannot assume that startIndex will be zero. 168 168 /// </remarks>
Note: See TracChangeset
for help on using the changeset viewer.