Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 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 |
comparison
equal
deleted
inserted
replaced
2791:d015fa861e3c | 2792:57e2d65d37ce |
---|---|
90 OrthancPluginMemoryBuffer* operator*() | 90 OrthancPluginMemoryBuffer* operator*() |
91 { | 91 { |
92 return &buffer_; | 92 return &buffer_; |
93 } | 93 } |
94 | 94 |
95 // This transfers ownership | 95 // This transfers ownership from "other" to "this" |
96 void Assign(OrthancPluginMemoryBuffer& other); | 96 void Assign(OrthancPluginMemoryBuffer& other); |
97 | |
98 OrthancPluginMemoryBuffer Release(); | |
97 | 99 |
98 const char* GetData() const | 100 const char* GetData() const |
99 { | 101 { |
100 if (buffer_.size > 0) | 102 if (buffer_.size > 0) |
101 { | 103 { |