diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2214:b1d93286b315

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 10 Dec 2016 11:24:58 +0100
parents 95d1d758abb7
children 028214a95194
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Sat Dec 10 10:17:44 2016 +0100
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Sat Dec 10 11:24:58 2016 +0100
@@ -353,6 +353,11 @@
 
     bool IsMatch(const void*  dicom,
                  uint32_t     size) const;
+
+    bool IsMatch(const MemoryBuffer& dicom) const
+    {
+      return IsMatch(dicom.GetData(), dicom.GetSize());
+    }
   };