|
|
@ -1,6 +1,6 @@ |
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
* Version 3.0.12 |
|
|
|
* Version 4.0.0 |
|
|
|
* |
|
|
|
* |
|
|
|
* This file is not intended to be easily readable and contains a number of |
|
|
|
* This file is not intended to be easily readable and contains a number of |
|
|
|
* coding conventions designed to improve portability and efficiency. Do not make |
|
|
|
* coding conventions designed to improve portability and efficiency. Do not make |
|
|
@ -255,12 +255,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_SystemInit(JNIEnv *jenv, jcla |
|
|
|
arg1 = (int)jarg1;
|
|
|
|
arg1 = (int)jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
SystemInit(arg1); |
|
|
|
SystemInit(arg1); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -554,12 +552,10 @@ SWIGEXPORT jlong JNICALL Java_com_herumi_mcl_MclJNI_new_1Fr_1_1SWIG_13(JNIEnv *j |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = (Fr *)new Fr((std::string const &)*arg1,arg2); |
|
|
|
result = (Fr *)new Fr((std::string const &)*arg1,arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*(Fr **)&jresult = result;
|
|
|
|
*(Fr **)&jresult = result;
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -583,12 +579,10 @@ SWIGEXPORT jlong JNICALL Java_com_herumi_mcl_MclJNI_new_1Fr_1_1SWIG_14(JNIEnv *j |
|
|
|
jenv->ReleaseStringUTFChars(jarg1, arg1_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg1, arg1_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = (Fr *)new Fr((std::string const &)*arg1); |
|
|
|
result = (Fr *)new Fr((std::string const &)*arg1); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*(Fr **)&jresult = result;
|
|
|
|
*(Fr **)&jresult = result;
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -637,12 +631,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_Fr_1setStr_1_1SWIG_10(JNIEnv |
|
|
|
arg3 = (int)jarg3;
|
|
|
|
arg3 = (int)jarg3;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -665,12 +657,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_Fr_1setStr_1_1SWIG_11(JNIEnv |
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -722,12 +712,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_Fr_1toString_1_1SWIG_10(JN |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((Fr const *)arg1)->toString(arg2); |
|
|
|
result = ((Fr const *)arg1)->toString(arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -744,12 +732,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_Fr_1toString_1_1SWIG_11(JN |
|
|
|
arg1 = *(Fr **)&jarg1;
|
|
|
|
arg1 = *(Fr **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((Fr const *)arg1)->toString(); |
|
|
|
result = ((Fr const *)arg1)->toString(); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -775,12 +761,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_Fr_1deserialize(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -801,12 +785,10 @@ SWIGEXPORT jbyteArray JNICALL Java_com_herumi_mcl_MclJNI_Fr_1serialize(JNIEnv *j |
|
|
|
arg1 = *(Fr **)&jarg1;
|
|
|
|
arg1 = *(Fr **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
((Fr const *)arg1)->serialize(*arg2); |
|
|
|
((Fr const *)arg1)->serialize(*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
@ -1028,12 +1010,10 @@ SWIGEXPORT jlong JNICALL Java_com_herumi_mcl_MclJNI_new_1Fp_1_1SWIG_13(JNIEnv *j |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = (Fp *)new Fp((std::string const &)*arg1,arg2); |
|
|
|
result = (Fp *)new Fp((std::string const &)*arg1,arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*(Fp **)&jresult = result;
|
|
|
|
*(Fp **)&jresult = result;
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1057,12 +1037,10 @@ SWIGEXPORT jlong JNICALL Java_com_herumi_mcl_MclJNI_new_1Fp_1_1SWIG_14(JNIEnv *j |
|
|
|
jenv->ReleaseStringUTFChars(jarg1, arg1_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg1, arg1_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = (Fp *)new Fp((std::string const &)*arg1); |
|
|
|
result = (Fp *)new Fp((std::string const &)*arg1); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*(Fp **)&jresult = result;
|
|
|
|
*(Fp **)&jresult = result;
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1111,12 +1089,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_Fp_1setStr_1_1SWIG_10(JNIEnv |
|
|
|
arg3 = (int)jarg3;
|
|
|
|
arg3 = (int)jarg3;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1139,12 +1115,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_Fp_1setStr_1_1SWIG_11(JNIEnv |
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1196,12 +1170,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_Fp_1toString_1_1SWIG_10(JN |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((Fp const *)arg1)->toString(arg2); |
|
|
|
result = ((Fp const *)arg1)->toString(arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1218,12 +1190,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_Fp_1toString_1_1SWIG_11(JN |
|
|
|
arg1 = *(Fp **)&jarg1;
|
|
|
|
arg1 = *(Fp **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((Fp const *)arg1)->toString(); |
|
|
|
result = ((Fp const *)arg1)->toString(); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1249,12 +1219,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_Fp_1deserialize(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -1275,12 +1243,10 @@ SWIGEXPORT jbyteArray JNICALL Java_com_herumi_mcl_MclJNI_Fp_1serialize(JNIEnv *j |
|
|
|
arg1 = *(Fp **)&jarg1;
|
|
|
|
arg1 = *(Fp **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
((Fp const *)arg1)->serialize(*arg2); |
|
|
|
((Fp const *)arg1)->serialize(*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
@ -1454,12 +1420,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_hashAndMapToG1(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
hashAndMapToG1(*arg1,(char const *)arg2,arg3); |
|
|
|
hashAndMapToG1(*arg1,(char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -1520,12 +1484,10 @@ SWIGEXPORT jlong JNICALL Java_com_herumi_mcl_MclJNI_new_1G1_1_1SWIG_12(JNIEnv *j |
|
|
|
}
|
|
|
|
}
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = (G1 *)new G1((Fp const &)*arg1,(Fp const &)*arg2); |
|
|
|
result = (G1 *)new G1((Fp const &)*arg1,(Fp const &)*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*(G1 **)&jresult = result;
|
|
|
|
*(G1 **)&jresult = result;
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1576,12 +1538,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G1_1set(JNIEnv *jenv, jclass |
|
|
|
}
|
|
|
|
}
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->set((Fp const &)*arg2,(Fp const &)*arg3); |
|
|
|
(arg1)->set((Fp const &)*arg2,(Fp const &)*arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1617,12 +1577,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G1_1setStr_1_1SWIG_10(JNIEnv |
|
|
|
arg3 = (int)jarg3;
|
|
|
|
arg3 = (int)jarg3;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1645,12 +1603,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G1_1setStr_1_1SWIG_11(JNIEnv |
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1667,12 +1623,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_G1_1toString_1_1SWIG_10(JN |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((G1 const *)arg1)->toString(arg2); |
|
|
|
result = ((G1 const *)arg1)->toString(arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1689,12 +1643,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_G1_1toString_1_1SWIG_11(JN |
|
|
|
arg1 = *(G1 **)&jarg1;
|
|
|
|
arg1 = *(G1 **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((G1 const *)arg1)->toString(); |
|
|
|
result = ((G1 const *)arg1)->toString(); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -1720,12 +1672,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G1_1deserialize(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -1746,12 +1696,10 @@ SWIGEXPORT jbyteArray JNICALL Java_com_herumi_mcl_MclJNI_G1_1serialize(JNIEnv *j |
|
|
|
arg1 = *(G1 **)&jarg1;
|
|
|
|
arg1 = *(G1 **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
((G1 const *)arg1)->serialize(*arg2); |
|
|
|
((G1 const *)arg1)->serialize(*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
@ -1896,12 +1844,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_hashAndMapToG2(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
hashAndMapToG2(*arg1,(char const *)arg2,arg3); |
|
|
|
hashAndMapToG2(*arg1,(char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -1976,12 +1922,10 @@ SWIGEXPORT jlong JNICALL Java_com_herumi_mcl_MclJNI_new_1G2_1_1SWIG_12(JNIEnv *j |
|
|
|
}
|
|
|
|
}
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = (G2 *)new G2((Fp const &)*arg1,(Fp const &)*arg2,(Fp const &)*arg3,(Fp const &)*arg4); |
|
|
|
result = (G2 *)new G2((Fp const &)*arg1,(Fp const &)*arg2,(Fp const &)*arg3,(Fp const &)*arg4); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*(G2 **)&jresult = result;
|
|
|
|
*(G2 **)&jresult = result;
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -2046,12 +1990,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G2_1set(JNIEnv *jenv, jclass |
|
|
|
}
|
|
|
|
}
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->set((Fp const &)*arg2,(Fp const &)*arg3,(Fp const &)*arg4,(Fp const &)*arg5); |
|
|
|
(arg1)->set((Fp const &)*arg2,(Fp const &)*arg3,(Fp const &)*arg4,(Fp const &)*arg5); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2087,12 +2029,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G2_1setStr_1_1SWIG_10(JNIEnv |
|
|
|
arg3 = (int)jarg3;
|
|
|
|
arg3 = (int)jarg3;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2115,12 +2055,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G2_1setStr_1_1SWIG_11(JNIEnv |
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2137,12 +2075,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_G2_1toString_1_1SWIG_10(JN |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((G2 const *)arg1)->toString(arg2); |
|
|
|
result = ((G2 const *)arg1)->toString(arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -2159,12 +2095,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_G2_1toString_1_1SWIG_11(JN |
|
|
|
arg1 = *(G2 **)&jarg1;
|
|
|
|
arg1 = *(G2 **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((G2 const *)arg1)->toString(); |
|
|
|
result = ((G2 const *)arg1)->toString(); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -2190,12 +2124,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_G2_1deserialize(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -2216,12 +2148,10 @@ SWIGEXPORT jbyteArray JNICALL Java_com_herumi_mcl_MclJNI_G2_1serialize(JNIEnv *j |
|
|
|
arg1 = *(G2 **)&jarg1;
|
|
|
|
arg1 = *(G2 **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
((G2 const *)arg1)->serialize(*arg2); |
|
|
|
((G2 const *)arg1)->serialize(*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
@ -2354,12 +2284,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_GT_1setStr_1_1SWIG_10(JNIEnv |
|
|
|
arg3 = (int)jarg3;
|
|
|
|
arg3 = (int)jarg3;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
(arg1)->setStr((std::string const &)*arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2382,12 +2310,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_GT_1setStr_1_1SWIG_11(JNIEnv |
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
jenv->ReleaseStringUTFChars(jarg2, arg2_pstr);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
(arg1)->setStr((std::string const &)*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2404,12 +2330,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_GT_1toString_1_1SWIG_10(JN |
|
|
|
arg2 = (int)jarg2;
|
|
|
|
arg2 = (int)jarg2;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((GT const *)arg1)->toString(arg2); |
|
|
|
result = ((GT const *)arg1)->toString(arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -2426,12 +2350,10 @@ SWIGEXPORT jstring JNICALL Java_com_herumi_mcl_MclJNI_GT_1toString_1_1SWIG_11(JN |
|
|
|
arg1 = *(GT **)&jarg1;
|
|
|
|
arg1 = *(GT **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
result = ((GT const *)arg1)->toString(); |
|
|
|
result = ((GT const *)arg1)->toString(); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
jresult = jenv->NewStringUTF((&result)->c_str());
|
|
|
|
return jresult; |
|
|
|
return jresult; |
|
|
|
} |
|
|
|
} |
|
|
@ -2457,12 +2379,10 @@ SWIGEXPORT void JNICALL Java_com_herumi_mcl_MclJNI_GT_1deserialize(JNIEnv *jenv, |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
(arg1)->deserialize((char const *)arg2,arg3); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
if (jarg2) jenv->ReleaseByteArrayElements(jarg2, (jbyte *)arg2, 0); |
|
|
|
} |
|
|
|
} |
|
|
@ -2483,12 +2403,10 @@ SWIGEXPORT jbyteArray JNICALL Java_com_herumi_mcl_MclJNI_GT_1serialize(JNIEnv *j |
|
|
|
arg1 = *(GT **)&jarg1;
|
|
|
|
arg1 = *(GT **)&jarg1;
|
|
|
|
try { |
|
|
|
try { |
|
|
|
((GT const *)arg1)->serialize(*arg2); |
|
|
|
((GT const *)arg1)->serialize(*arg2); |
|
|
|
} |
|
|
|
} catch(std::exception &_e) { |
|
|
|
catch(std::exception &_e) { |
|
|
|
|
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, (&_e)->what()); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jresult = jenv->NewByteArray(arg2->size()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
|
jenv->SetByteArrayRegion(jresult, 0, arg2->size(), (const jbyte*)arg2->c_str()); |
|
|
|