Fixed BZip2 Decompressor, which wasn't properly included in the project.

This commit is contained in:
Ima Mechanique 2012-03-18 05:49:44 +00:00
parent 948d0527aa
commit 962fbed2c7
7 changed files with 11 additions and 30 deletions

View file

@ -4,9 +4,9 @@ using System.IO;
// BZip2.Decompress(File.OpenRead("in"), File.Create("out"));
namespace LSLEditor.BZip2Decompress
namespace LSLEditor.Decompressor
{
public sealed class Decompressor
public sealed class BZip2
{
public static void Decompress(Stream inStream, Stream outStream)
{

View file

@ -1,4 +1,4 @@
namespace LSLEditor.BZip2Decompress
namespace LSLEditor.Decompressor
{
/// <summary>

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LSLEditor.BZip2Decompress
namespace LSLEditor.Decompressor
{
/// <summary>

View file

@ -35,7 +35,7 @@
// obligated to do so. If you do not wish to do so, delete this
// exception statement from your version.
namespace LSLEditor.BZip2Decompress
namespace LSLEditor.Decompressor
{
/// <summary>

View file

@ -1,18 +0,0 @@
using System;
using System.Security.Cryptography;
using System.IO;
namespace LSLEditor.BZip2Decompress
{
class MD5Verify
{
public static string ComputeHash(string strFile)
{
MD5CryptoServiceProvider csp = new MD5CryptoServiceProvider();
FileStream stream = File.OpenRead(strFile);
byte[] hash = csp.ComputeHash(stream);
stream.Close();
return BitConverter.ToString(hash).Replace("-", "").ToLower();
}
}
}

View file

@ -38,7 +38,7 @@
using System;
namespace LSLEditor.BZip2Decompress
namespace LSLEditor.Decompressor
{
/// <summary>
/// Bzip2 checksum algorithm