@@ -38591,16 +38591,16 @@ SWIGINTERN int _wrap_new_BlindSeedNtHash__SWIG_0(PyObject *self, Py_ssize_t nobj
3859138591 PyObject *resultobj = 0;
3859238592 char *arg1 = (char *) 0 ;
3859338593 std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ;
38594- unsigned int arg3 ;
38595- unsigned int arg4 ;
38594+ btllib::hashing_internals::NUM_HASHES_TYPE arg3 ;
38595+ btllib::hashing_internals::K_TYPE arg4 ;
3859638596 long arg5 ;
3859738597 int res1 ;
3859838598 char *buf1 = 0 ;
3859938599 int alloc1 = 0 ;
3860038600 int res2 = SWIG_OLDOBJ ;
38601- unsigned int val3 ;
38601+ unsigned char val3 ;
3860238602 int ecode3 = 0 ;
38603- unsigned int val4 ;
38603+ unsigned short val4 ;
3860438604 int ecode4 = 0 ;
3860538605 long val5 ;
3860638606 int ecode5 = 0 ;
@@ -38624,16 +38624,16 @@ SWIGINTERN int _wrap_new_BlindSeedNtHash__SWIG_0(PyObject *self, Py_ssize_t nobj
3862438624 }
3862538625 arg2 = ptr;
3862638626 }
38627- ecode3 = SWIG_AsVal_unsigned_SS_int (swig_obj[2], &val3);
38627+ ecode3 = SWIG_AsVal_unsigned_SS_char (swig_obj[2], &val3);
3862838628 if (!SWIG_IsOK(ecode3)) {
38629- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindSeedNtHash" "', argument " "3"" of type '" "unsigned int ""'");
38629+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindSeedNtHash" "', argument " "3"" of type '" "btllib::hashing_internals::NUM_HASHES_TYPE ""'");
3863038630 }
38631- arg3 = static_cast< unsigned int >(val3);
38632- ecode4 = SWIG_AsVal_unsigned_SS_int (swig_obj[3], &val4);
38631+ arg3 = static_cast< btllib::hashing_internals::NUM_HASHES_TYPE >(val3);
38632+ ecode4 = SWIG_AsVal_unsigned_SS_short (swig_obj[3], &val4);
3863338633 if (!SWIG_IsOK(ecode4)) {
38634- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindSeedNtHash" "', argument " "4"" of type '" "unsigned int ""'");
38634+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindSeedNtHash" "', argument " "4"" of type '" "btllib::hashing_internals::K_TYPE ""'");
3863538635 }
38636- arg4 = static_cast< unsigned int >(val4);
38636+ arg4 = static_cast< btllib::hashing_internals::K_TYPE >(val4);
3863738637 ecode5 = SWIG_AsVal_long(swig_obj[4], &val5);
3863838638 if (!SWIG_IsOK(ecode5)) {
3863938639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BlindSeedNtHash" "', argument " "5"" of type '" "long""'");
@@ -38655,15 +38655,15 @@ SWIGINTERN int _wrap_new_BlindSeedNtHash__SWIG_1(PyObject *self, Py_ssize_t nobj
3865538655 PyObject *resultobj = 0;
3865638656 char *arg1 = (char *) 0 ;
3865738657 std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ;
38658- unsigned int arg3 ;
38659- unsigned int arg4 ;
38658+ btllib::hashing_internals::NUM_HASHES_TYPE arg3 ;
38659+ btllib::hashing_internals::K_TYPE arg4 ;
3866038660 int res1 ;
3866138661 char *buf1 = 0 ;
3866238662 int alloc1 = 0 ;
3866338663 int res2 = SWIG_OLDOBJ ;
38664- unsigned int val3 ;
38664+ unsigned char val3 ;
3866538665 int ecode3 = 0 ;
38666- unsigned int val4 ;
38666+ unsigned short val4 ;
3866738667 int ecode4 = 0 ;
3866838668 btllib::BlindSeedNtHash *result = 0 ;
3866938669
@@ -38685,16 +38685,16 @@ SWIGINTERN int _wrap_new_BlindSeedNtHash__SWIG_1(PyObject *self, Py_ssize_t nobj
3868538685 }
3868638686 arg2 = ptr;
3868738687 }
38688- ecode3 = SWIG_AsVal_unsigned_SS_int (swig_obj[2], &val3);
38688+ ecode3 = SWIG_AsVal_unsigned_SS_char (swig_obj[2], &val3);
3868938689 if (!SWIG_IsOK(ecode3)) {
38690- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindSeedNtHash" "', argument " "3"" of type '" "unsigned int ""'");
38690+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindSeedNtHash" "', argument " "3"" of type '" "btllib::hashing_internals::NUM_HASHES_TYPE ""'");
3869138691 }
38692- arg3 = static_cast< unsigned int >(val3);
38693- ecode4 = SWIG_AsVal_unsigned_SS_int (swig_obj[3], &val4);
38692+ arg3 = static_cast< btllib::hashing_internals::NUM_HASHES_TYPE >(val3);
38693+ ecode4 = SWIG_AsVal_unsigned_SS_short (swig_obj[3], &val4);
3869438694 if (!SWIG_IsOK(ecode4)) {
38695- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindSeedNtHash" "', argument " "4"" of type '" "unsigned int ""'");
38695+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindSeedNtHash" "', argument " "4"" of type '" "btllib::hashing_internals::K_TYPE ""'");
3869638696 }
38697- arg4 = static_cast< unsigned int >(val4);
38697+ arg4 = static_cast< btllib::hashing_internals::K_TYPE >(val4);
3869838698 result = (btllib::BlindSeedNtHash *)new btllib::BlindSeedNtHash((char const *)arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4);
3869938699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BlindSeedNtHash, SWIG_BUILTIN_INIT | 0 );
3870038700 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
@@ -38803,8 +38803,8 @@ SWIGINTERN int _wrap_new_BlindSeedNtHash(PyObject *self, PyObject *args, PyObjec
3880338803fail:
3880438804 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_BlindSeedNtHash'.\n"
3880538805 " Possible C/C++ prototypes are:\n"
38806- " btllib::BlindSeedNtHash::BlindSeedNtHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int ,long)\n"
38807- " btllib::BlindSeedNtHash::BlindSeedNtHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int )\n"
38806+ " btllib::BlindSeedNtHash::BlindSeedNtHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,btllib::hashing_internals::NUM_HASHES_TYPE,btllib::hashing_internals::K_TYPE ,long)\n"
38807+ " btllib::BlindSeedNtHash::BlindSeedNtHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,btllib::hashing_internals::NUM_HASHES_TYPE,btllib::hashing_internals::K_TYPE )\n"
3880838808 " btllib::BlindSeedNtHash::BlindSeedNtHash(btllib::BlindSeedNtHash const &)\n"
3880938809 " btllib::BlindSeedNtHash::BlindSeedNtHash(btllib::BlindSeedNtHash &&)\n");
3881038810 return -1;
@@ -42891,13 +42891,13 @@ SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_NtHash) /* defines _wrap_delete_NtHash_de
4289142891SWIGINTERN int _wrap_new_BlindNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
4289242892 PyObject *resultobj = 0;
4289342893 std::string *arg1 = 0 ;
42894- unsigned int arg2 ;
42895- unsigned int arg3 ;
42894+ btllib::hashing_internals::NUM_HASHES_TYPE arg2 ;
42895+ btllib::hashing_internals::K_TYPE arg3 ;
4289642896 long arg4 ;
4289742897 int res1 = SWIG_OLDOBJ ;
42898- unsigned int val2 ;
42898+ unsigned char val2 ;
4289942899 int ecode2 = 0 ;
42900- unsigned int val3 ;
42900+ unsigned short val3 ;
4290142901 int ecode3 = 0 ;
4290242902 long val4 ;
4290342903 int ecode4 = 0 ;
@@ -42916,16 +42916,16 @@ SWIGINTERN int _wrap_new_BlindNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, P
4291642916 }
4291742917 arg1 = ptr;
4291842918 }
42919- ecode2 = SWIG_AsVal_unsigned_SS_int (swig_obj[1], &val2);
42919+ ecode2 = SWIG_AsVal_unsigned_SS_char (swig_obj[1], &val2);
4292042920 if (!SWIG_IsOK(ecode2)) {
42921- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlindNtHash" "', argument " "2"" of type '" "unsigned int ""'");
42921+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlindNtHash" "', argument " "2"" of type '" "btllib::hashing_internals::NUM_HASHES_TYPE ""'");
4292242922 }
42923- arg2 = static_cast< unsigned int >(val2);
42924- ecode3 = SWIG_AsVal_unsigned_SS_int (swig_obj[2], &val3);
42923+ arg2 = static_cast< btllib::hashing_internals::NUM_HASHES_TYPE >(val2);
42924+ ecode3 = SWIG_AsVal_unsigned_SS_short (swig_obj[2], &val3);
4292542925 if (!SWIG_IsOK(ecode3)) {
42926- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindNtHash" "', argument " "3"" of type '" "unsigned int ""'");
42926+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindNtHash" "', argument " "3"" of type '" "btllib::hashing_internals::K_TYPE ""'");
4292742927 }
42928- arg3 = static_cast< unsigned int >(val3);
42928+ arg3 = static_cast< btllib::hashing_internals::K_TYPE >(val3);
4292942929 ecode4 = SWIG_AsVal_long(swig_obj[3], &val4);
4293042930 if (!SWIG_IsOK(ecode4)) {
4293142931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindNtHash" "', argument " "4"" of type '" "long""'");
@@ -43309,25 +43309,39 @@ SWIGINTERN int _wrap_new_BlindNtHash(PyObject *self, PyObject *args, PyObject *k
4330943309 int _v = 0;
4331043310 {
4331143311 {
43312- int res = SWIG_AsVal_size_t(argv[3], NULL);
43312+ int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
43313+ _v = SWIG_CheckState(res);
43314+ }
43315+ }
43316+ if (!_v) goto check_2;
43317+ {
43318+ {
43319+ int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
43320+ _v = SWIG_CheckState(res);
43321+ }
43322+ }
43323+ if (!_v) goto check_2;
43324+ {
43325+ {
43326+ int res = SWIG_AsVal_long(argv[3], NULL);
4331343327 _v = SWIG_CheckState(res);
4331443328 }
4331543329 }
4331643330 if (!_v) goto check_2;
43317- return _wrap_new_BlindNtHash__SWIG_1 (self, argc, argv);
43331+ return _wrap_new_BlindNtHash__SWIG_0 (self, argc, argv);
4331843332 }
4331943333check_2:
4332043334
4332143335 if (argc == 4) {
43322- int retval = _wrap_new_BlindNtHash__SWIG_0 (self, argc, argv);
43336+ int retval = _wrap_new_BlindNtHash__SWIG_1 (self, argc, argv);
4332343337 if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval;
4332443338 SWIG_fail;
4332543339 }
4332643340
4332743341fail:
4332843342 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_BlindNtHash'.\n"
4332943343 " Possible C/C++ prototypes are:\n"
43330- " btllib::BlindNtHash::BlindNtHash(std::string const &,unsigned int,unsigned int ,long)\n"
43344+ " btllib::BlindNtHash::BlindNtHash(std::string const &,btllib::hashing_internals::NUM_HASHES_TYPE,btllib::hashing_internals::K_TYPE ,long)\n"
4333143345 " btllib::BlindNtHash::BlindNtHash(std::string,unsigned int,unsigned int,size_t)\n"
4333243346 " btllib::BlindNtHash::BlindNtHash(std::string,unsigned int,unsigned int)\n");
4333343347 return -1;
0 commit comments