aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-10 19:57:24 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-10 19:57:24 +0300
commitdccbf1e50d0dfc98bb611af8a4611312806f1664 (patch)
tree2e0c08d3d2497c37c0ce02d2f42703250311e90d /library/cpp/monlib/encode
parent48a7383de78f9548e18c2bac8db285fe00886cc0 (diff)
downloadydb-dccbf1e50d0dfc98bb611af8a4611312806f1664.tar.gz
intermediate changes
ref:bbe986d1f7c2465be047a3bc69b8e068fb0c2fe9
Diffstat (limited to 'library/cpp/monlib/encode')
-rw-r--r--library/cpp/monlib/encode/buffered/string_pool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/monlib/encode/buffered/string_pool.h b/library/cpp/monlib/encode/buffered/string_pool.h
index 00e5644608..7630cee353 100644
--- a/library/cpp/monlib/encode/buffered/string_pool.h
+++ b/library/cpp/monlib/encode/buffered/string_pool.h
@@ -82,6 +82,10 @@ namespace NMonitoring {
return Index_.size();
}
+ size_t SizeBytes() const {
+ return Index_.capacity() * sizeof(TStringBuf);
+ }
+
private:
void InitIndex(const char* data, ui32 size);