Mercurial > hg > orthanc
diff OrthancFramework/Sources/FileStorage/StorageCache.h @ 4906:f656fb878b50
reintroduced storage cache for StartRange files
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 21 Feb 2022 10:11:38 +0100 |
parents | ea5f1c6ed07e |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/FileStorage/StorageCache.h Sun Feb 20 16:57:43 2022 +0100 +++ b/OrthancFramework/Sources/FileStorage/StorageCache.h Mon Feb 21 10:11:38 2022 +0100 @@ -47,6 +47,10 @@ FileContentType contentType, const std::string& value); + void AddStartRange(const std::string& uuid, + FileContentType contentType, + const std::string& value); + void Add(const std::string& uuid, FileContentType contentType, const void* buffer, @@ -59,5 +63,10 @@ const std::string& uuid, FileContentType contentType); + bool FetchStartRange(std::string& value, + const std::string& uuid, + FileContentType contentType, + uint64_t end /* exclusive */); + }; }