Exemplo n.º 1
0
 internal static void MatchFinder_CreateVTable(CMatchFinder p, out IMatchFinder vTable)
 {
     TR("MatchFinder_CreateVTable", p.mNumHashBytes);
     if (!p.mBtMode)
         vTable = new MatchFinderHc4();
     else if (p.mNumHashBytes == 2)
         vTable = new MatchFinderBt2();
     else if (p.mNumHashBytes == 3)
         vTable = new MatchFinderBt3();
     else
         vTable = new MatchFinderBt4();
 }
Exemplo n.º 2
0
 internal static void MatchFinder_CreateVTable(CMatchFinder p, out IMatchFinder vTable)
 {
     //TR("MatchFinder_CreateVTable", p.mNumHashBytes);
     if (!p.mBtMode)
     {
         vTable = new MatchFinderHc4();
     }
     else if (p.mNumHashBytes == 2)
     {
         vTable = new MatchFinderBt2();
     }
     else if (p.mNumHashBytes == 3)
     {
         vTable = new MatchFinderBt3();
     }
     else
     {
         vTable = new MatchFinderBt4();
     }
 }