Skip to content

Commit 455f25f

Browse files
test
1 parent af204b7 commit 455f25f

File tree

3 files changed

+445
-418
lines changed

3 files changed

+445
-418
lines changed

src/DynamsoftCaptureVisionRouter_wrap.cxx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11050,7 +11050,7 @@ extern "C"
1105011050
{
1105111051
PyObject *resultobj = 0;
1105211052
dynamsoft::cvr::CCaptureVisionRouter *arg1 = (dynamsoft::cvr::CCaptureVisionRouter *)0;
11053-
unsigned char *arg2 = (unsigned char *)0;
11053+
char *arg2 = (char *)0;
1105411054
int arg3;
1105511055
char *arg4 = (char *)0;
1105611056
void *argp1 = 0;
@@ -11079,8 +11079,11 @@ extern "C"
1107911079
}
1108011080
arg1 = reinterpret_cast<dynamsoft::cvr::CCaptureVisionRouter *>(argp1);
1108111081
// res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_unsigned_char, 0 | 0);
11082-
res2 = PyBytes_AsStringAndSize(swig_obj[1], (char **)&arg2, (Py_ssize_t *)&arg3);
11083-
if (!SWIG_IsOK(res2))
11082+
//res2 = PyBytes_AsStringAndSize(swig_obj[1], (char **)&arg2, (Py_ssize_t *)&arg3);
11083+
arg2 = PyBytes_AsString(swig_obj[1]);
11084+
arg3 = PyBytes_Size(swig_obj[1]);
11085+
//if (!SWIG_IsOK(res2))
11086+
if (!arg2||arg3==0)
1108411087
{
1108511088
SWIG_exception_fail(SWIG_ArgError(res2), "in method '"
1108611089
"CCaptureVisionRouter_Capture"
@@ -11134,7 +11137,7 @@ extern "C"
1113411137
{
1113511138
PyObject *resultobj = 0;
1113611139
dynamsoft::cvr::CCaptureVisionRouter *arg1 = (dynamsoft::cvr::CCaptureVisionRouter *)0;
11137-
unsigned char *arg2 = (unsigned char *)0;
11140+
char *arg2 = (char *)0;
1113811141
int arg3;
1113911142
void *argp1 = 0;
1114011143
int res1 = 0;
@@ -11159,8 +11162,11 @@ extern "C"
1115911162
}
1116011163
arg1 = reinterpret_cast<dynamsoft::cvr::CCaptureVisionRouter *>(argp1);
1116111164
// res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_unsigned_char, 0 | 0);
11162-
res2 = PyBytes_AsStringAndSize(swig_obj[1], (char **)&arg2, (Py_ssize_t *)&arg3);
11163-
if (!SWIG_IsOK(res2))
11165+
// res2 = PyBytes_AsStringAndSize(swig_obj[1], (char **)&arg2, (Py_ssize_t *)&arg3);
11166+
// if (!SWIG_IsOK(res2))
11167+
arg2 = PyBytes_AsString(swig_obj[1]);
11168+
arg3 = PyBytes_Size(swig_obj[1]);
11169+
if (!arg2 || arg3 == 0)
1116411170
{
1116511171
SWIG_exception_fail(SWIG_ArgError(res2), "in method '"
1116611172
"CCaptureVisionRouter_Capture"

0 commit comments

Comments
 (0)