Exemple #1
0
        /*
        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);
        }
Exemple #2
0
        /*
         * 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));
        }