summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/memory/ref.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp
index 06ec7f9ffe7..d48277f84c7 100644
--- a/library/cpp/yt/memory/ref.cpp
+++ b/library/cpp/yt/memory/ref.cpp
@@ -29,7 +29,11 @@ public:
: Blob_(std::move(blob))
{ }
- // NB: TBlob's capacity is dynamic; cannot provide GetTotalByteSize implementation.
+ // TSharedRangeHolder overrides.
+ std::optional<size_t> GetTotalByteSize() const override
+ {
+ return Blob_.Capacity();
+ }
private:
const TBlob Blob_;