Mercurial > hg > orthanc-python
changeset 189:46a81ed6e843
removed pointless function orthanc.CreateMemoryBuffer()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 17:17:24 +0200 |
parents | 008be55355a4 |
children | cf15599a1608 a8ff820fb028 |
files | CodeAnalysis/ParseOrthancSDK.py Sources/Autogenerated/sdk_GlobalFunctions.impl.h |
diffstat | 2 files changed, 1 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/CodeAnalysis/ParseOrthancSDK.py Thu Jun 27 18:16:26 2024 +0200 +++ b/CodeAnalysis/ParseOrthancSDK.py Tue Jul 02 17:17:24 2024 +0200 @@ -39,6 +39,7 @@ ## CUSTOM_FUNCTIONS = set([ + 'OrthancPluginCreateMemoryBuffer', 'OrthancPluginCreateDicom', 'OrthancPluginCreateImageAccessor', # Replaced by "orthanc.CreateImageFromBuffer()" 'OrthancPluginFreeMemoryBuffer',
--- a/Sources/Autogenerated/sdk_GlobalFunctions.impl.h Thu Jun 27 18:16:26 2024 +0200 +++ b/Sources/Autogenerated/sdk_GlobalFunctions.impl.h Tue Jul 02 17:17:24 2024 +0200 @@ -293,31 +293,6 @@ } } -static PyObject* sdk_OrthancPluginCreateMemoryBuffer(PyObject* module, PyObject* args) -{ - PythonLock::LogCall("Calling Python global function: OrthancPluginCreateMemoryBuffer()"); - - unsigned long arg0 = 0; - - if (!PyArg_ParseTuple(args, "k", &arg0)) - { - PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); - return NULL; - } - OrthancPlugins::MemoryBuffer buffer; - OrthancPluginErrorCode code = OrthancPluginCreateMemoryBuffer(OrthancPlugins::GetGlobalContext(), *buffer, arg0); - - if (code == OrthancPluginErrorCode_Success) - { - return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); - } - else - { - PythonLock::RaiseException(code); - return NULL; - } -} - static PyObject* sdk_OrthancPluginDecodeDicomImage(PyObject* module, PyObject* args) { PythonLock::LogCall("Calling Python global function: OrthancPluginDecodeDicomImage()"); @@ -1559,8 +1534,6 @@ "Generated from C function OrthancPluginCreateFindMatcher()" }, { "CreateImage", sdk_OrthancPluginCreateImage, METH_VARARGS, "Generated from C function OrthancPluginCreateImage()" }, - { "CreateMemoryBuffer", sdk_OrthancPluginCreateMemoryBuffer, METH_VARARGS, - "Generated from C function OrthancPluginCreateMemoryBuffer()" }, { "DecodeDicomImage", sdk_OrthancPluginDecodeDicomImage, METH_VARARGS, "Generated from C function OrthancPluginDecodeDicomImage()" }, { "DicomBufferToJson", sdk_OrthancPluginDicomBufferToJson, METH_VARARGS,