Renamespace for proper pluralization

This commit is contained in:
Adam Hathcock
2016-09-26 11:49:49 +01:00
parent c24cdc66ed
commit d732e3cfa4
188 changed files with 335 additions and 339 deletions

29
.gitignore vendored
View File

@@ -1,14 +1,15 @@
**/bin/*
**/obj/*
_ReSharper.SharpCompress/
bin/
*.suo
*.user
TestArchives/Scratch/
TestArchives/Scratch2/
TestResults/
*.nupkg
packages/*/
project.lock.json
test/TestArchives/Scratch
.vs
**/bin/*
**/obj/*
_ReSharper.SharpCompress/
bin/
*.suo
*.user
TestArchives/Scratch/
TestArchives/Scratch2/
TestResults/
*.nupkg
packages/*/
project.lock.json
test/TestArchives/Scratch
.vs
tools

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using SharpCompress.Common;
using SharpCompress.Reader;
using SharpCompress.Readers;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public abstract class AbstractArchive<TEntry, TVolume> : IArchive, IArchiveExtractionListener
where TEntry : IArchiveEntry

View File

@@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using SharpCompress.Common;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public abstract class AbstractWritableArchive<TEntry, TVolume> : AbstractArchive<TEntry, TVolume>, IWritableArchive
where TEntry : IArchiveEntry

View File

@@ -1,13 +1,13 @@
using System;
using System.IO;
using SharpCompress.Archive.GZip;
using SharpCompress.Archive.Rar;
using SharpCompress.Archive.SevenZip;
using SharpCompress.Archive.Tar;
using SharpCompress.Archive.Zip;
using SharpCompress.Archives.GZip;
using SharpCompress.Archives.Rar;
using SharpCompress.Archives.SevenZip;
using SharpCompress.Archives.Tar;
using SharpCompress.Archives.Zip;
using SharpCompress.Common;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public class ArchiveFactory
{
@@ -82,10 +82,10 @@ namespace SharpCompress.Archive
#if !NO_FILE
/// <summary>
/// Constructor expects a filepath to an existing file.
/// </summary>
/// <param name="filePath"></param>
/// <summary>
/// Constructor expects a filepath to an existing file.
/// </summary>
/// <param name="filePath"></param>
public static IArchive Open(string filePath)
{
return Open(filePath, Options.None);

View File

@@ -4,11 +4,11 @@ using System.IO;
using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.GZip;
using SharpCompress.Reader;
using SharpCompress.Reader.GZip;
using SharpCompress.Writer.GZip;
using SharpCompress.Readers;
using SharpCompress.Readers.GZip;
using SharpCompress.Writers.GZip;
namespace SharpCompress.Archive.GZip
namespace SharpCompress.Archives.GZip
{
public class GZipArchive : AbstractWritableArchive<GZipArchiveEntry, GZipVolume>
{

View File

@@ -2,7 +2,7 @@
using System.Linq;
using SharpCompress.Common.GZip;
namespace SharpCompress.Archive.GZip
namespace SharpCompress.Archives.GZip
{
public class GZipArchiveEntry : GZipEntry, IArchiveEntry
{

View File

@@ -4,7 +4,7 @@ using System.IO;
using SharpCompress.Common;
using SharpCompress.IO;
namespace SharpCompress.Archive.GZip
namespace SharpCompress.Archives.GZip
{
internal class GZipWritableArchiveEntry : GZipArchiveEntry, IWritableArchiveEntry
{

View File

@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using SharpCompress.Common;
using SharpCompress.Reader;
using SharpCompress.Readers;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public interface IArchive : IDisposable
{

View File

@@ -1,7 +1,7 @@
using System.IO;
using SharpCompress.Common;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public interface IArchiveEntry : IEntry
{

View File

@@ -2,7 +2,7 @@
using SharpCompress.Common;
using SharpCompress.IO;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public static class IArchiveEntryExtensions
{

View File

@@ -3,7 +3,7 @@ using System.Linq;
using SharpCompress.Common;
#endif
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public static class IArchiveExtensions
{

View File

@@ -1,6 +1,6 @@
using SharpCompress.Common;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
internal interface IArchiveExtractionListener : IExtractionListener
{

View File

@@ -2,7 +2,7 @@ using System;
using System.IO;
using SharpCompress.Common;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public interface IWritableArchive : IArchive
{

View File

@@ -1,6 +1,6 @@
using System.IO;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
internal interface IWritableArchiveEntry
{

View File

@@ -4,7 +4,7 @@ using System;
using System.IO;
using SharpCompress.Common;
namespace SharpCompress.Archive
namespace SharpCompress.Archives
{
public static class IWritableArchiveExtensions
{

View File

@@ -7,7 +7,7 @@ using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
using SharpCompress.IO;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
/// <summary>
/// A rar part based on a FileInfo object

View File

@@ -1,10 +1,9 @@

#if !NO_FILE
using System.IO;
using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
internal class FileInfoRarFilePart : SeekableFilePart
{

View File

@@ -1,6 +1,6 @@
using System.Linq;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
public static class RarArchiveExtensions
{

View File

@@ -4,12 +4,12 @@ using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
using SharpCompress.Compressor.Rar;
using SharpCompress.Compressors.Rar;
using SharpCompress.IO;
using SharpCompress.Reader;
using SharpCompress.Reader.Rar;
using SharpCompress.Readers;
using SharpCompress.Readers.Rar;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
public class RarArchive : AbstractArchive<RarArchiveEntry, RarVolume>
{

View File

@@ -5,9 +5,9 @@ using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
using SharpCompress.Compressor.Rar;
using SharpCompress.Compressors.Rar;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
public class RarArchiveEntry : RarEntry, IArchiveEntry
{

View File

@@ -3,7 +3,7 @@ using SharpCompress.Common;
using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
internal static class RarArchiveEntryFactory
{

View File

@@ -3,13 +3,14 @@ using System.Collections.Generic;
using System.IO;
using SharpCompress.Common;
using SharpCompress.Common.Rar;
#if !NO_FILE
using System.Linq;
using System.Text;
using SharpCompress.Common.Rar.Headers;
#endif
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
internal static class RarArchiveVolumeFactory
{

View File

@@ -2,7 +2,7 @@
using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
internal class SeekableFilePart : RarFilePart
{

View File

@@ -5,7 +5,7 @@ using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
using SharpCompress.IO;
namespace SharpCompress.Archive.Rar
namespace SharpCompress.Archives.Rar
{
internal class StreamRarArchiveVolume : RarVolume
{

View File

@@ -5,9 +5,9 @@ using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.SevenZip;
using SharpCompress.IO;
using SharpCompress.Reader;
using SharpCompress.Readers;
namespace SharpCompress.Archive.SevenZip
namespace SharpCompress.Archives.SevenZip
{
public class SevenZipArchive : AbstractArchive<SevenZipArchiveEntry, SevenZipVolume>
{

View File

@@ -1,7 +1,7 @@
using System.IO;
using SharpCompress.Common.SevenZip;
namespace SharpCompress.Archive.SevenZip
namespace SharpCompress.Archives.SevenZip
{
public class SevenZipArchiveEntry : SevenZipEntry, IArchiveEntry
{

View File

@@ -6,11 +6,11 @@ using SharpCompress.Common;
using SharpCompress.Common.Tar;
using SharpCompress.Common.Tar.Headers;
using SharpCompress.IO;
using SharpCompress.Reader;
using SharpCompress.Reader.Tar;
using SharpCompress.Writer.Tar;
using SharpCompress.Readers;
using SharpCompress.Readers.Tar;
using SharpCompress.Writers.Tar;
namespace SharpCompress.Archive.Tar
namespace SharpCompress.Archives.Tar
{
public class TarArchive : AbstractWritableArchive<TarArchiveEntry, TarVolume>
{

View File

@@ -3,7 +3,7 @@ using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.Tar;
namespace SharpCompress.Archive.Tar
namespace SharpCompress.Archives.Tar
{
public class TarArchiveEntry : TarEntry, IArchiveEntry
{

View File

@@ -4,7 +4,7 @@ using System.IO;
using SharpCompress.Common;
using SharpCompress.IO;
namespace SharpCompress.Archive.Tar
namespace SharpCompress.Archives.Tar
{
internal class TarWritableArchiveEntry : TarArchiveEntry, IWritableArchiveEntry
{

View File

@@ -5,12 +5,12 @@ using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.Zip;
using SharpCompress.Common.Zip.Headers;
using SharpCompress.Compressor.Deflate;
using SharpCompress.Reader;
using SharpCompress.Reader.Zip;
using SharpCompress.Writer.Zip;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Readers;
using SharpCompress.Readers.Zip;
using SharpCompress.Writers.Zip;
namespace SharpCompress.Archive.Zip
namespace SharpCompress.Archives.Zip
{
public class ZipArchive : AbstractWritableArchive<ZipArchiveEntry, ZipVolume>
{
@@ -24,11 +24,11 @@ namespace SharpCompress.Archive.Zip
#if !NO_FILE
/// <summary>
/// Constructor expects a filepath to an existing file.
/// </summary>
/// <param name="filePath"></param>
/// <param name="password"></param>
/// <summary>
/// Constructor expects a filepath to an existing file.
/// </summary>
/// <param name="filePath"></param>
/// <param name="password"></param>
public static ZipArchive Open(string filePath, string password = null)
{
return Open(filePath, Options.None, password);

View File

@@ -2,7 +2,7 @@
using System.Linq;
using SharpCompress.Common.Zip;
namespace SharpCompress.Archive.Zip
namespace SharpCompress.Archives.Zip
{
public class ZipArchiveEntry : ZipEntry, IArchiveEntry
{

View File

@@ -4,7 +4,7 @@ using System.IO;
using SharpCompress.Common;
using SharpCompress.IO;
namespace SharpCompress.Archive.Zip
namespace SharpCompress.Archives.Zip
{
internal class ZipWritableArchiveEntry : ZipArchiveEntry, IWritableArchiveEntry
{

View File

@@ -1,4 +1,4 @@
using SharpCompress.Compressor.Deflate;
using SharpCompress.Compressors.Deflate;
namespace SharpCompress.Common
{

View File

@@ -1,6 +1,6 @@
using System;
using System.IO;
using SharpCompress.Reader;
using SharpCompress.Readers;
namespace SharpCompress.Common
{

View File

@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.IO;
using SharpCompress.Common.Tar.Headers;
using SharpCompress.Compressor;
using SharpCompress.Compressor.Deflate;
using SharpCompress.Converter;
using SharpCompress.Compressors;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Converters;
namespace SharpCompress.Common.GZip
{

View File

@@ -1,5 +1,4 @@
#if !NO_CRYPTO
#if !NO_CRYPTO
using System;
using System.Collections.Generic;
using System.Linq;
@@ -75,13 +74,16 @@ namespace SharpCompress.Common.Rar
byte[] aesKey = new byte[CRYPTO_BLOCK_SIZE];
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
aesKey[i*4 + j] = (byte)
(((digest[i*4]*0x1000000) & 0xff000000 |
(uint) ((digest[i*4 + 1]*0x10000) & 0xff0000) |
(uint) ((digest[i*4 + 2]*0x100) & 0xff00) |
(uint) (digest[i*4 + 3] & 0xff)) >> (j*8));
}
}
rijndael.Init(false, new KeyParameter(aesKey));
@@ -101,10 +103,14 @@ namespace SharpCompress.Common.Rar
rijndael.ProcessBlock(cipherText, 0, plainText, 0);
for (int j = 0; j < plainText.Length; j++)
{
decryptedBytes.Add((byte) (plainText[j] ^ aesInitializationVector[j%16])); //32:114, 33:101
}
for (int j = 0; j < aesInitializationVector.Length; j++)
{
aesInitializationVector[j] = cipherText[j];
}
return decryptedBytes.ToArray();
}

View File

@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.IO;
using SharpCompress.Compressor.LZMA;
using SharpCompress.Compressor.LZMA.Utilites;
using SharpCompress.Compressors.LZMA;
using SharpCompress.Compressors.LZMA.Utilites;
namespace SharpCompress.Common.SevenZip
{

View File

@@ -3,8 +3,8 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using SharpCompress.Compressor.LZMA;
using SharpCompress.Compressor.LZMA.Utilites;
using SharpCompress.Compressors.LZMA;
using SharpCompress.Compressors.LZMA.Utilites;
using SharpCompress.IO;
namespace SharpCompress.Common.SevenZip

View File

@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using SharpCompress.Compressor.LZMA;
using SharpCompress.Compressors.LZMA;
namespace SharpCompress.Common.SevenZip
{

View File

@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using SharpCompress.Compressor.LZMA;
using SharpCompress.Compressors.LZMA;
namespace SharpCompress.Common.SevenZip
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
using System.Text;
using SharpCompress.Compressor.LZMA;
using SharpCompress.Compressors.LZMA;
namespace SharpCompress.Common.SevenZip
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
using System.Text;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Common.Tar.Headers
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Common.Zip.Headers
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Text;
using SharpCompress.Common.Zip.Headers;
using SharpCompress.Compressor.Deflate;
using SharpCompress.Compressors.Deflate;
namespace SharpCompress.Common.Zip
{

View File

@@ -1,6 +1,6 @@
using System.IO;
using SharpCompress.Common.Zip.Headers;
using SharpCompress.Compressor.Deflate;
using SharpCompress.Compressors.Deflate;
using SharpCompress.IO;
namespace SharpCompress.Common.Zip

View File

@@ -3,7 +3,7 @@
using System;
using System.IO;
using System.Security.Cryptography;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Common.Zip
{

View File

@@ -2,8 +2,7 @@
#if !NO_CRYPTO
using System;
using System.Security.Cryptography;
using SharpCompress.Converter;
using System.Text;
using SharpCompress.Converters;
namespace SharpCompress.Common.Zip
{
@@ -70,7 +69,9 @@ namespace SharpCompress.Common.Zip
{
short generated = DataConverter.LittleEndian.GetInt16(generatedVerifyValue, 0);
if (verify != generated)
{
throw new InvalidFormatException("bad password");
}
}
}
}

View File

@@ -2,12 +2,12 @@
using System.IO;
using System.Linq;
using SharpCompress.Common.Zip.Headers;
using SharpCompress.Compressor;
using SharpCompress.Compressor.BZip2;
using SharpCompress.Compressor.Deflate;
using SharpCompress.Compressor.LZMA;
using SharpCompress.Compressor.PPMd;
using SharpCompress.Converter;
using SharpCompress.Compressors;
using SharpCompress.Compressors.BZip2;
using SharpCompress.Compressors.Deflate;
using SharpCompress.Compressors.LZMA;
using SharpCompress.Compressors.PPMd;
using SharpCompress.Converters;
using SharpCompress.IO;
namespace SharpCompress.Common.Zip

View File

@@ -26,7 +26,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.ADC
namespace SharpCompress.Compressors.ADC
{
/// <summary>
/// Provides static methods for decompressing Apple Data Compression data

View File

@@ -26,7 +26,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.ADC
namespace SharpCompress.Compressors.ADC
{
/// <summary>
/// Provides a forward readable only stream that decompresses ADC data

View File

@@ -20,7 +20,7 @@
* great code.
*/
namespace SharpCompress.Compressor.BZip2
namespace SharpCompress.Compressors.BZip2
{
/**
* Base class for both the compress and decompress classes.

View File

@@ -1,6 +1,6 @@
using System.IO;
namespace SharpCompress.Compressor.BZip2
namespace SharpCompress.Compressors.BZip2
{
public class BZip2Stream : Stream
{

View File

@@ -22,7 +22,7 @@
* great code.
*/
namespace SharpCompress.Compressor.BZip2
namespace SharpCompress.Compressors.BZip2
{
/**
* An input stream that decompresses from the BZip2 format (with the file

View File

@@ -22,7 +22,7 @@
* great code.
*/
namespace SharpCompress.Compressor.BZip2
namespace SharpCompress.Compressors.BZip2
{
/**
* An output stream that compresses into the BZip2 format (with the file

View File

@@ -20,7 +20,7 @@
* great code.
*/
namespace SharpCompress.Compressor.BZip2
namespace SharpCompress.Compressors.BZip2
{
/**
* A simple class the hold and calculate the CRC for sanity checking

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor
namespace SharpCompress.Compressors
{
public enum CompressionMode
{

View File

@@ -32,11 +32,10 @@
//
// ------------------------------------------------------------------
using System;
using System.IO;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
/// <summary>
/// Calculates a 32bit Cyclic Redundancy Checksum (CRC) using the same polynomial

View File

@@ -66,10 +66,9 @@
//
// -----------------------------------------------------------------------
using System;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
internal sealed partial class DeflateManager
{

View File

@@ -24,11 +24,10 @@
//
// ------------------------------------------------------------------
using System;
using System.IO;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
public class DeflateStream : Stream
{

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
/// <summary>
/// Describes how to flush the current deflate operation.

View File

@@ -26,13 +26,12 @@
//
// ------------------------------------------------------------------
using System;
using System.IO;
using SharpCompress.Common;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
public class GZipStream : Stream
{

View File

@@ -59,10 +59,9 @@
//
// -----------------------------------------------------------------------
using System;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
internal sealed class InfTree
{

View File

@@ -61,10 +61,9 @@
//
// -----------------------------------------------------------------------
using System;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
internal sealed class InflateBlocks
{

View File

@@ -60,10 +60,9 @@
//
// -----------------------------------------------------------------------
using System;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
internal sealed partial class DeflateManager
{

View File

@@ -65,7 +65,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
/// <summary>
/// The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress.

View File

@@ -29,9 +29,9 @@ using System.Collections.Generic;
using System.IO;
using SharpCompress.Common;
using SharpCompress.Common.Tar.Headers;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
internal enum ZlibStreamFlavor
{

View File

@@ -63,10 +63,9 @@
//
// -----------------------------------------------------------------------
using System;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
/// <summary>
/// Encoder and Decoder for ZLIB and DEFLATE (IETF RFC1950 and RFC1951).

View File

@@ -61,7 +61,7 @@
// -----------------------------------------------------------------------
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
/// <summary>
/// A bunch of constants used in the Zlib interface.

View File

@@ -28,7 +28,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.Deflate
namespace SharpCompress.Compressors.Deflate
{
public class ZlibStream : Stream
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.Filters
namespace SharpCompress.Compressors.Filters
{
internal class BCJ2Filter : Stream
{

View File

@@ -1,6 +1,6 @@
using System.IO;
namespace SharpCompress.Compressor.Filters
namespace SharpCompress.Compressors.Filters
{
internal class BCJFilter : Filter
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.Filters
namespace SharpCompress.Compressors.Filters
{
internal abstract class Filter : Stream
{

View File

@@ -4,9 +4,9 @@ using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using SharpCompress.Compressor.LZMA.Utilites;
using SharpCompress.Compressors.LZMA.Utilites;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal class AesDecoderStream : DecoderStream2
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal class Bcj2DecoderStream : DecoderStream2
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal class BitVector
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal static class CRC
{

View File

@@ -1,10 +1,10 @@
using System;
using System.IO;
using SharpCompress.Common.SevenZip;
using SharpCompress.Compressor.LZMA.Utilites;
using SharpCompress.Compressors.LZMA.Utilites;
using SharpCompress.IO;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal abstract class DecoderStream2 : Stream
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
/// <summary>
/// The exception that is thrown when an error in input stream occurs during decoding.

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor.LZMA.LZ
namespace SharpCompress.Compressors.LZMA.LZ
{
internal class CRC
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA.LZ
namespace SharpCompress.Compressors.LZMA.LZ
{
internal class BinTree : InWindow
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA.LZ
namespace SharpCompress.Compressors.LZMA.LZ
{
internal class InWindow
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA.LZ
namespace SharpCompress.Compressors.LZMA.LZ
{
internal class OutWindow
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal static class Log
{

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal abstract class Base
{

View File

@@ -1,9 +1,9 @@
using System;
using System.IO;
using SharpCompress.Compressor.LZMA.LZ;
using SharpCompress.Compressor.LZMA.RangeCoder;
using SharpCompress.Compressors.LZMA.LZ;
using SharpCompress.Compressors.LZMA.RangeCoder;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal class Decoder : ICoder, ISetDecoderProperties // ,System.IO.Stream
{

View File

@@ -1,9 +1,9 @@
using System;
using System.IO;
using SharpCompress.Compressor.LZMA.LZ;
using SharpCompress.Compressor.LZMA.RangeCoder;
using SharpCompress.Compressors.LZMA.LZ;
using SharpCompress.Compressors.LZMA.RangeCoder;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal class Encoder : ICoder, ISetCoderProperties, IWriteCoderProperties
{

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
public class LzmaEncoderProperties
{

View File

@@ -1,9 +1,9 @@
using System;
using System.IO;
using SharpCompress.Compressor.LZMA.LZ;
using SharpCompress.Converter;
using SharpCompress.Compressors.LZMA.LZ;
using SharpCompress.Converters;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
public class LzmaStream : Stream
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA.RangeCoder
namespace SharpCompress.Compressors.LZMA.RangeCoder
{
internal class Encoder
{

View File

@@ -1,6 +1,6 @@
using System;
namespace SharpCompress.Compressor.LZMA.RangeCoder
namespace SharpCompress.Compressors.LZMA.RangeCoder
{
internal struct BitEncoder
{

View File

@@ -1,6 +1,6 @@
using System;
namespace SharpCompress.Compressor.LZMA.RangeCoder
namespace SharpCompress.Compressors.LZMA.RangeCoder
{
internal struct BitTreeEncoder
{

View File

@@ -2,12 +2,12 @@
using System.IO;
using System.Linq;
using SharpCompress.Common.SevenZip;
using SharpCompress.Compressor.BZip2;
using SharpCompress.Compressor.Filters;
using SharpCompress.Compressor.LZMA.Utilites;
using SharpCompress.Compressor.PPMd;
using SharpCompress.Compressors.BZip2;
using SharpCompress.Compressors.Filters;
using SharpCompress.Compressors.LZMA.Utilites;
using SharpCompress.Compressors.PPMd;
namespace SharpCompress.Compressor.LZMA
namespace SharpCompress.Compressors.LZMA
{
internal static class DecoderRegistry
{

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
namespace SharpCompress.Compressor.LZMA.Utilites
namespace SharpCompress.Compressors.LZMA.Utilites
{
internal class CrcBuilderStream : Stream
{

View File

@@ -2,7 +2,7 @@
using System.Diagnostics;
using System.IO;
namespace SharpCompress.Compressor.LZMA.Utilites
namespace SharpCompress.Compressors.LZMA.Utilites
{
internal class CrcCheckStream : Stream
{

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor.LZMA.Utilites
namespace SharpCompress.Compressors.LZMA.Utilites
{
internal interface IPasswordProvider
{

View File

@@ -2,7 +2,7 @@
using System.Diagnostics;
using System.IO;
namespace SharpCompress.Compressor.LZMA.Utilites
namespace SharpCompress.Compressors.LZMA.Utilites
{
internal enum BlockType : byte
{

View File

@@ -1,8 +1,8 @@
using System;
using System.Text;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Compressor.PPMd.H
namespace SharpCompress.Compressors.PPMd.H
{
internal class FreqData : Pointer
{

View File

@@ -1,10 +1,10 @@
using System;
using System.IO;
using System.Text;
using SharpCompress.Compressor.Rar;
using Decoder = SharpCompress.Compressor.LZMA.RangeCoder.Decoder;
using SharpCompress.Compressors.Rar;
using Decoder = SharpCompress.Compressors.LZMA.RangeCoder.Decoder;
namespace SharpCompress.Compressor.PPMd.H
namespace SharpCompress.Compressors.PPMd.H
{
internal class ModelPPM
{

View File

@@ -1,8 +1,8 @@
using System;
using System.Text;
using SharpCompress.Converter;
using SharpCompress.Converters;
namespace SharpCompress.Compressor.PPMd.H
namespace SharpCompress.Compressors.PPMd.H
{
internal class PPMContext : Pointer
{

View File

@@ -1,4 +1,4 @@
namespace SharpCompress.Compressor.PPMd.H
namespace SharpCompress.Compressors.PPMd.H
{
internal abstract class Pointer
{

Some files were not shown because too many files have changed in this diff Show More