Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2791:d015fa861e3c | 2792:57e2d65d37ce |
---|---|
105 other.data = NULL; | 105 other.data = NULL; |
106 other.size = 0; | 106 other.size = 0; |
107 } | 107 } |
108 | 108 |
109 | 109 |
110 OrthancPluginMemoryBuffer MemoryBuffer::Release() | |
111 { | |
112 OrthancPluginMemoryBuffer result = buffer_; | |
113 | |
114 buffer_.data = NULL; | |
115 buffer_.size = 0; | |
116 | |
117 return result; | |
118 } | |
119 | |
120 | |
110 void MemoryBuffer::ToString(std::string& target) const | 121 void MemoryBuffer::ToString(std::string& target) const |
111 { | 122 { |
112 if (buffer_.size == 0) | 123 if (buffer_.size == 0) |
113 { | 124 { |
114 target.clear(); | 125 target.clear(); |