Mercurial > hg > orthanc
comparison OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp @ 4520:f5cb0c0ffbed
added unit test OrthancFramework.SizeOf to dump sizeof all the public classes in the Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 22 Feb 2021 18:30:31 +0100 |
parents | cff7fdfc83a4 |
children | 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4519:a3c6678aa7b1 | 4520:f5cb0c0ffbed |
---|---|
178 std::string content; | 178 std::string content; |
179 SystemToolbox::ReadFileRange( | 179 SystemToolbox::ReadFileRange( |
180 content, GetPath(uuid).string(), start, end, true /* throw if overflow */); | 180 content, GetPath(uuid).string(), start, end, true /* throw if overflow */); |
181 | 181 |
182 return StringMemoryBuffer::CreateFromSwap(content); | 182 return StringMemoryBuffer::CreateFromSwap(content); |
183 } | |
184 | |
185 | |
186 bool FilesystemStorage::HasReadRange() const | |
187 { | |
188 return true; | |
183 } | 189 } |
184 | 190 |
185 | 191 |
186 uintmax_t FilesystemStorage::GetSize(const std::string& uuid) const | 192 uintmax_t FilesystemStorage::GetSize(const std::string& uuid) const |
187 { | 193 { |