diff options
author | swarmer <swarmer@yandex-team.com> | 2024-08-01 02:38:51 +0300 |
---|---|---|
committer | swarmer <swarmer@yandex-team.com> | 2024-08-01 02:47:53 +0300 |
commit | 47f4373399712aeee5f71e1fe7363de5d56a631d (patch) | |
tree | 13f8d7292352a84f5d1ae1cd3dbb0f7f4f05ae48 | |
parent | df1d068c88515d34d4c2055643790c619e545352 (diff) | |
download | ydb-47f4373399712aeee5f71e1fe7363de5d56a631d.tar.gz |
check lifetime of the TBlob no-copy-view
9d78e3f3c3b02b6a9467bda8b2af46826fa30868
-rw-r--r-- | util/memory/blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h index 20c02a68df..008ac104fb 100644 --- a/util/memory/blob.h +++ b/util/memory/blob.h @@ -198,7 +198,7 @@ public: static TBlob Copy(const void* data, size_t length); /// Creates a blob which doesn't own data. No refcounter, no memory allocation, no data copy. - static TBlob NoCopy(const void* data, size_t length); + static TBlob NoCopy(const void* data Y_LIFETIME_BOUND, size_t length); /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data. static TBlob FromFileSingleThreaded(const TString& path, EMappingMode); |