diff OrthancServer/Sources/ServerContext.h @ 5744:9d6167ddcb35 find-refactoring-clean

merged default -> find-refactoring-clean
author Alain Mazy <am@orthanc.team>
date Thu, 29 Aug 2024 15:41:42 +0200
parents 52771e1a8072 8bb3f2fca242
children f75596b224e0
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.h	Fri Jul 19 14:03:09 2024 +0200
+++ b/OrthancServer/Sources/ServerContext.h	Thu Aug 29 15:41:42 2024 +0200
@@ -286,6 +286,7 @@
       std::unique_ptr<ParsedDicomFile>             dicom_;
       size_t                                       dicomSize_;
       std::unique_ptr<Semaphore::Locker>           largeDicomLocker_;
+      std::string                                  buffer_;
 
     public:
       DicomCacheLocker(ServerContext& context,
@@ -294,6 +295,8 @@
       ~DicomCacheLocker();
 
       ParsedDicomFile& GetDicom() const;
+
+      const std::string& GetBuffer();
     };
 
     ServerContext(IDatabaseWrapper& database,
@@ -524,7 +527,12 @@
     ImageAccessor* DecodeDicomFrame(const void* dicom,
                                     size_t size,
                                     unsigned int frameIndex);
-    
+
+    ImageAccessor* DecodeDicomFrame(const ParsedDicomFile& parsedDicom,
+                                    const void* buffer,  // actually the buffer that is the source of the ParsedDicomFile
+                                    size_t size,
+                                    unsigned int frameIndex);
+
     void StoreWithTranscoding(std::string& sopClassUid,
                               std::string& sopInstanceUid,
                               DicomStoreUserConnection& connection,