Example #1
0
        public static byte[] Compress(byte[] src)
        {
            NoxLzCompression nxz = new NoxLzCompression();

            nxz.BuildInitialAlphabet();
            // init variables
            nxz.bitwtr        = new BitWriter(WINDOW_SIZE);
            nxz.SymbolCounter = new int[SYMBOLS];

            return(nxz.CompressImpl(src, src.Length));
        }
Example #2
0
        public static byte[] Compress(byte[] src)
        {
            Map map = new Map();
            NoxLzCompression nxz = new NoxLzCompression();

            map.progress = 2;
            nxz.BuildInitialAlphabet();
            map.progress = 4;
            // init variables
            nxz.bitwtr        = new BitWriter();
            map.progress      = 6;
            nxz.SymbolCounter = new int[SYMBOLS];
            map.progress      = 10;
            return(nxz.CompressImpl(src, src.Length));
        }