forked from mirrors/NBTExplorer
Internalizing Ionic.Zlib classes
This commit is contained in:
parent
51511529ba
commit
d71c75e033
9 changed files with 13 additions and 13 deletions
4
SubstrateCS/Vendor/DotNetZip/Zlib/Crc32.cs
vendored
4
SubstrateCS/Vendor/DotNetZip/Zlib/Crc32.cs
vendored
|
@ -52,7 +52,7 @@ namespace Ionic.Zlib
|
||||||
#if !NETCF
|
#if !NETCF
|
||||||
[Interop.ClassInterface(Interop.ClassInterfaceType.AutoDispatch)]
|
[Interop.ClassInterface(Interop.ClassInterfaceType.AutoDispatch)]
|
||||||
#endif
|
#endif
|
||||||
public class CRC32
|
internal class CRC32
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// indicates the total number of bytes read on the CRC stream.
|
/// indicates the total number of bytes read on the CRC stream.
|
||||||
|
@ -322,7 +322,7 @@ namespace Ionic.Zlib
|
||||||
/// DotNetZip library.
|
/// DotNetZip library.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public class CrcCalculatorStream : System.IO.Stream, System.IDisposable
|
internal class CrcCalculatorStream : System.IO.Stream, System.IDisposable
|
||||||
{
|
{
|
||||||
private static readonly Int64 UnsetLengthLimit = -99;
|
private static readonly Int64 UnsetLengthLimit = -99;
|
||||||
|
|
||||||
|
|
2
SubstrateCS/Vendor/DotNetZip/Zlib/Deflate.cs
vendored
2
SubstrateCS/Vendor/DotNetZip/Zlib/Deflate.cs
vendored
|
@ -78,7 +78,7 @@ namespace Ionic.Zlib
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// The different FlushType values are useful when using a Deflate in a streaming application.
|
/// The different FlushType values are useful when using a Deflate in a streaming application.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public enum FlushType
|
internal enum FlushType
|
||||||
{
|
{
|
||||||
/// <summary>No flush at all.</summary>
|
/// <summary>No flush at all.</summary>
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace Ionic.Zlib
|
||||||
///
|
///
|
||||||
/// <seealso cref="DeflateStream" />
|
/// <seealso cref="DeflateStream" />
|
||||||
/// <seealso cref="GZipStream" />
|
/// <seealso cref="GZipStream" />
|
||||||
public class DeflateStream : System.IO.Stream
|
internal class DeflateStream : System.IO.Stream
|
||||||
{
|
{
|
||||||
internal ZlibBaseStream _baseStream;
|
internal ZlibBaseStream _baseStream;
|
||||||
internal System.IO.Stream _innerStream;
|
internal System.IO.Stream _innerStream;
|
||||||
|
|
|
@ -81,7 +81,7 @@ namespace Ionic.Zlib
|
||||||
///
|
///
|
||||||
/// <seealso cref="DeflateStream" />
|
/// <seealso cref="DeflateStream" />
|
||||||
/// <seealso cref="ZlibStream" />
|
/// <seealso cref="ZlibStream" />
|
||||||
public class GZipStream : System.IO.Stream
|
internal class GZipStream : System.IO.Stream
|
||||||
{
|
{
|
||||||
// GZip format
|
// GZip format
|
||||||
// source: http://tools.ietf.org/html/rfc1952
|
// source: http://tools.ietf.org/html/rfc1952
|
||||||
|
|
|
@ -90,7 +90,7 @@ namespace Ionic.Zlib
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <seealso cref="Ionic.Zlib.DeflateStream" />
|
/// <seealso cref="Ionic.Zlib.DeflateStream" />
|
||||||
public class ParallelDeflateOutputStream : System.IO.Stream
|
internal class ParallelDeflateOutputStream : System.IO.Stream
|
||||||
{
|
{
|
||||||
|
|
||||||
private static readonly int IO_BUFFER_SIZE_DEFAULT = 64 * 1024; // 128k
|
private static readonly int IO_BUFFER_SIZE_DEFAULT = 64 * 1024; // 128k
|
||||||
|
|
8
SubstrateCS/Vendor/DotNetZip/Zlib/Zlib.cs
vendored
8
SubstrateCS/Vendor/DotNetZip/Zlib/Zlib.cs
vendored
|
@ -73,7 +73,7 @@ namespace Ionic.Zlib
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress.
|
/// The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum CompressionLevel
|
internal enum CompressionLevel
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// None means that the data will be simply stored, with no change at all.
|
/// None means that the data will be simply stored, with no change at all.
|
||||||
|
@ -152,7 +152,7 @@ namespace Ionic.Zlib
|
||||||
/// work better on different sorts of data. The strategy parameter can affect the compression
|
/// work better on different sorts of data. The strategy parameter can affect the compression
|
||||||
/// ratio and the speed of compression but not the correctness of the compresssion.
|
/// ratio and the speed of compression but not the correctness of the compresssion.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum CompressionStrategy
|
internal enum CompressionStrategy
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The default strategy is probably the best for normal data.
|
/// The default strategy is probably the best for normal data.
|
||||||
|
@ -179,7 +179,7 @@ namespace Ionic.Zlib
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An enum to specify the direction of transcoding - whether to compress or decompress.
|
/// An enum to specify the direction of transcoding - whether to compress or decompress.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum CompressionMode
|
internal enum CompressionMode
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to specify that the stream should compress the data.
|
/// Used to specify that the stream should compress the data.
|
||||||
|
@ -196,7 +196,7 @@ namespace Ionic.Zlib
|
||||||
/// A general purpose exception class for exceptions in the Zlib library.
|
/// A general purpose exception class for exceptions in the Zlib library.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Interop.GuidAttribute("ebc25cf6-9120-4283-b972-0e5520d0000E")]
|
[Interop.GuidAttribute("ebc25cf6-9120-4283-b972-0e5520d0000E")]
|
||||||
public class ZlibException : System.Exception
|
internal class ZlibException : System.Exception
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ZlibException class captures exception information generated
|
/// The ZlibException class captures exception information generated
|
||||||
|
|
|
@ -84,7 +84,7 @@ namespace Ionic.Zlib
|
||||||
#if !NETCF
|
#if !NETCF
|
||||||
[Interop.ClassInterface(Interop.ClassInterfaceType.AutoDispatch)]
|
[Interop.ClassInterface(Interop.ClassInterfaceType.AutoDispatch)]
|
||||||
#endif
|
#endif
|
||||||
sealed public class ZlibCodec
|
sealed internal class ZlibCodec
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The buffer from which data is taken.
|
/// The buffer from which data is taken.
|
||||||
|
|
|
@ -68,7 +68,7 @@ namespace Ionic.Zlib
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A bunch of constants used in the Zlib interface.
|
/// A bunch of constants used in the Zlib interface.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class ZlibConstants
|
internal static class ZlibConstants
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum number of window bits for the Deflate algorithm.
|
/// The maximum number of window bits for the Deflate algorithm.
|
||||||
|
|
|
@ -68,7 +68,7 @@ namespace Ionic.Zlib
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <seealso cref="DeflateStream" />
|
/// <seealso cref="DeflateStream" />
|
||||||
/// <seealso cref="GZipStream" />
|
/// <seealso cref="GZipStream" />
|
||||||
public class ZlibStream : System.IO.Stream
|
internal class ZlibStream : System.IO.Stream
|
||||||
{
|
{
|
||||||
internal ZlibBaseStream _baseStream;
|
internal ZlibBaseStream _baseStream;
|
||||||
bool _disposed;
|
bool _disposed;
|
||||||
|
|
Loading…
Reference in a new issue