Mercurial > hg > orthanc
diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3934:0b59e2706366 transcoding
guard on SDK version in OrthancPlugins::MemoryBuffer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 May 2020 15:15:58 +0200 |
parents | b99acc213937 |
children | 3b0c555f16a3 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Fri May 15 12:25:36 2020 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Fri May 15 15:15:58 2020 +0200 @@ -146,8 +146,12 @@ public: MemoryBuffer(); +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 7, 0) + // This constructor makes a copy of the given buffer in the memory + // handled by the Orthanc core MemoryBuffer(const void* buffer, size_t size); +#endif ~MemoryBuffer() {