Beispiel #1
0
            internal void MatchFinderMt_CreateVTable(out IMatchFinder vTable)
            {
                // Careful: don't use this.mNumHashBytes - it hasn't been initialized yet!
                TR("MatchFinderMt_CreateVTable", base.mNumHashBytes);
                switch (base.mNumHashBytes)
                {
                case 2:
                    vTable = mInterface = new MatchFinderMt2();
                    break;

                case 3:
                    vTable = mInterface = new MatchFinderMt3();
                    break;

                default:
#if PROTOTYPE
                    vTable = mInterface = new MatchFinderMt5();
                    break;

                case 4:
#endif
                    if (base.mBigHash)
                    {
                        vTable = mInterface = new MatchFinderMt4b();
                    }
                    else
                    {
                        vTable = mInterface = new MatchFinderMt4a();
                    }
                    break;
                }
            }
Beispiel #2
0
 internal void MatchFinderMt_CreateVTable(out IMatchFinder vTable)
 {
     // Careful: don't use this.mNumHashBytes - it hasn't been initialized yet!
     TR("MatchFinderMt_CreateVTable", base.mNumHashBytes);
     switch(base.mNumHashBytes)
     {
     case 2:
         vTable = mInterface = new MatchFinderMt2();
         break;
     case 3:
         vTable = mInterface = new MatchFinderMt3();
         break;
     default:
     #if PROTOTYPE
         vTable = mInterface = new MatchFinderMt5();
         break;
     case 4:
     #endif
         if(base.mBigHash)
             vTable = mInterface = new MatchFinderMt4b();
         else
             vTable = mInterface = new MatchFinderMt4a();
         break;
     }
 }