예제 #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();
 }
예제 #2
0
파일: LzFind.cs 프로젝트: 0-v-0/tiny7z
 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();
     }
 }