/* private static byte[] BZip2Decompress(Stream Data, int ExpectedLength) { MemoryStream output = new MemoryStream(); BZip2.Decompress(Data, output); return output.ToArray(); } */ private static byte[] PKDecompress(Stream Data, int ExpectedLength) { PKLibDecompress pk = new PKLibDecompress(Data); return pk.Explode(ExpectedLength); }
/* * private static byte[] BZip2Decompress(Stream Data, int ExpectedLength) * { * MemoryStream output = new MemoryStream(); * BZip2.Decompress(Data, output); * return output.ToArray(); * } */ private static byte[] PKDecompress(Stream Data, int ExpectedLength) { PKLibDecompress pk = new PKLibDecompress(Data); return(pk.Explode(ExpectedLength)); }