Mercurial > hg > orthanc
diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2792:57e2d65d37ce
OrthancPlugins::MemoryBuffer::Release(), fixing openssl link
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Jul 2018 22:06:55 +0200 |
parents | 878b59270859 |
children | 4df3c64402ba |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Jul 26 21:18:05 2018 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Jul 26 22:06:55 2018 +0200 @@ -107,6 +107,17 @@ } + OrthancPluginMemoryBuffer MemoryBuffer::Release() + { + OrthancPluginMemoryBuffer result = buffer_; + + buffer_.data = NULL; + buffer_.size = 0; + + return result; + } + + void MemoryBuffer::ToString(std::string& target) const { if (buffer_.size == 0)