Filter for inflate algorithm without any header or trailer.
Наследование: ZlibFilter
Пример #1
0
        public bool GetImplementedFilter(string name, bool instantiate, out PhpFilter instance, object parameters)
        {
            instance = null;

            switch (name)
            {
                case "zlib.deflate":
                    if (instantiate) instance = new DeflateFilter(-1, DeflateFilterMode.Normal);
                    return true;
                case "zlib.inflate":
                    if (instantiate) instance = new InflateFilter();
                    return true;
            }

            return false;
        }
Пример #2
0
        public bool GetImplementedFilter(string name, bool instantiate, out PhpFilter instance, object parameters)
        {
            instance = null;

            switch (name)
            {
            case "zlib.deflate":
                if (instantiate)
                {
                    instance = new DeflateFilter(-1, DeflateFilterMode.Normal);
                }
                return(true);

            case "zlib.inflate":
                if (instantiate)
                {
                    instance = new InflateFilter();
                }
                return(true);
            }

            return(false);
        }