Exemplo n.º 1
0
        public static ErrorCode Compress(
            byte[] dest,
            ref uint destLen,
            byte[] src,
            uint srcLen,
            byte[] outProps,
            ref uint outPropsSize,
            int level,
            uint dictSize,
            int lc,
            int lp,
            int pb,
            int fb,
            int numThreads)
        {
            if (Is64Bit == true)
            {
                return((ErrorCode)Native64.CompressInternal(
                           dest,
                           ref destLen,
                           src,
                           srcLen,
                           outProps,
                           ref outPropsSize,
                           level,
                           dictSize,
                           lc,
                           lp,
                           pb,
                           fb,
                           numThreads));
            }

            return((ErrorCode)Native32.CompressInternal(
                       dest,
                       ref destLen,
                       src,
                       srcLen,
                       outProps,
                       ref outPropsSize,
                       level,
                       dictSize,
                       lc,
                       lp,
                       pb,
                       fb,
                       numThreads));
        }