Provides special fast (with linear time) parsing if base is pow of 2.
Inheritance: IParser
Exemple #1
0
        // .cctor
        static ParseManager()
        {
            // Create new pow2 parser instance
            IParser pow2Parser = new Pow2Parser();

            // Create new classic parser instance
            IParser classicParser = new ClassicParser(pow2Parser);

            // Fill publicity visible parser fields
            ClassicParser = classicParser;
            FastParser    = new FastParser(pow2Parser, classicParser);
        }
Exemple #2
0
        // .cctor
        static ParseManager()
        {
            // Create new pow2 parser instance
            IParser pow2Parser = new Pow2Parser();

            // Create new classic parser instance
            IParser classicParser = new ClassicParser(pow2Parser);

            // Fill publicity visible parser fields
            ClassicParser = classicParser;
            FastParser = new FastParser(pow2Parser, classicParser);
        }