- PyObject *args(0),*ob(0);
- PyObject* resultPython=PyMemoryView_FromMemory(resultCorbaC,length,PyBUF_READ);
- args = PyTuple_New(1);
- PyTuple_SetItem(args,0,resultPython);
- PyObject *finalResult=PyObject_CallObject(_pyfuncUnser,args);
- resultCorba.reset(nullptr);
- Py_DECREF(args);
+ PyObject *finalResult( nullptr), *ob( nullptr );
+ {
+ SeqByteReceiver recv(resultCorba);
+ PyObject *args(0);
+ unsigned long length = 0;
+ char *resultCorbaC = recv.data(length);
+ PyObject* resultPython=PyMemoryView_FromMemory(resultCorbaC,length,PyBUF_READ);
+ args = PyTuple_New(1);
+ PyTuple_SetItem(args,0,resultPython);
+ finalResult = PyObject_CallObject(_pyfuncUnser,args);
+ Py_DECREF(args);
+ }