comparison Sources/Autogenerated/sdk_GlobalFunctions.impl.h @ 191:30ed49f2487f java-code-model

removed pointless function orthanc.CreateMemoryBuffer()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 18:00:52 +0200
parents 55473de7694f
children b0f096d2339e
comparison
equal deleted inserted replaced
190:0cb98433a382 191:30ed49f2487f
421 { 421 {
422 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); 422 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */);
423 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList); 423 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList);
424 Py_DECREF(argList); 424 Py_DECREF(argList);
425 return python; 425 return python;
426 }
427 }
428
429 static PyObject* sdk_OrthancPluginCreateMemoryBuffer(PyObject* module, PyObject* args)
430 {
431 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateMemoryBuffer()");
432
433 unsigned long arg0 = 0;
434
435 if (!PyArg_ParseTuple(args, "k", &arg0))
436 {
437 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
438 return NULL;
439 }
440
441 OrthancPlugins::MemoryBuffer buffer;
442 OrthancPluginErrorCode code;
443 {
444 PythonThreadsAllower allower;
445 code = OrthancPluginCreateMemoryBuffer(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
446 }
447
448 if (code == OrthancPluginErrorCode_Success)
449 {
450 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
451 }
452 else
453 {
454 PythonLock::RaiseException(code);
455 return NULL;
456 } 426 }
457 } 427 }
458 428
459 static PyObject* sdk_OrthancPluginDecodeDicomImage(PyObject* module, PyObject* args) 429 static PyObject* sdk_OrthancPluginDecodeDicomImage(PyObject* module, PyObject* args)
460 { 430 {
1936 "Generated from C function OrthancPluginCreateDicomInstance()" }, 1906 "Generated from C function OrthancPluginCreateDicomInstance()" },
1937 { "CreateFindMatcher", sdk_OrthancPluginCreateFindMatcher, METH_VARARGS, 1907 { "CreateFindMatcher", sdk_OrthancPluginCreateFindMatcher, METH_VARARGS,
1938 "Generated from C function OrthancPluginCreateFindMatcher()" }, 1908 "Generated from C function OrthancPluginCreateFindMatcher()" },
1939 { "CreateImage", sdk_OrthancPluginCreateImage, METH_VARARGS, 1909 { "CreateImage", sdk_OrthancPluginCreateImage, METH_VARARGS,
1940 "Generated from C function OrthancPluginCreateImage()" }, 1910 "Generated from C function OrthancPluginCreateImage()" },
1941 { "CreateMemoryBuffer", sdk_OrthancPluginCreateMemoryBuffer, METH_VARARGS,
1942 "Generated from C function OrthancPluginCreateMemoryBuffer()" },
1943 { "DecodeDicomImage", sdk_OrthancPluginDecodeDicomImage, METH_VARARGS, 1911 { "DecodeDicomImage", sdk_OrthancPluginDecodeDicomImage, METH_VARARGS,
1944 "Generated from C function OrthancPluginDecodeDicomImage()" }, 1912 "Generated from C function OrthancPluginDecodeDicomImage()" },
1945 { "DicomBufferToJson", sdk_OrthancPluginDicomBufferToJson, METH_VARARGS, 1913 { "DicomBufferToJson", sdk_OrthancPluginDicomBufferToJson, METH_VARARGS,
1946 "Generated from C function OrthancPluginDicomBufferToJson()" }, 1914 "Generated from C function OrthancPluginDicomBufferToJson()" },
1947 { "DicomInstanceToJson", sdk_OrthancPluginDicomInstanceToJson, METH_VARARGS, 1915 { "DicomInstanceToJson", sdk_OrthancPluginDicomInstanceToJson, METH_VARARGS,