diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:13 +0300 |
commit | 736dcd8ca259457a136f2f9f9168c44643914323 (patch) | |
tree | ddd46a036d68bfa83aa11b892f31243ea6b068a1 /util/memory | |
parent | 9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff) | |
download | ydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz |
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r-- | util/memory/addstorage_ut.cpp | 2 | ||||
-rw-r--r-- | util/memory/benchmark/pool/main.cpp | 2 | ||||
-rw-r--r-- | util/memory/blob.cpp | 10 | ||||
-rw-r--r-- | util/memory/blob_ut.cpp | 2 | ||||
-rw-r--r-- | util/memory/pool_ut.cpp | 2 | ||||
-rw-r--r-- | util/memory/smallobj_ut.cpp | 2 | ||||
-rw-r--r-- | util/memory/tempbuf.h | 16 | ||||
-rw-r--r-- | util/memory/tempbuf_ut.cpp | 2 |
8 files changed, 19 insertions, 19 deletions
diff --git a/util/memory/addstorage_ut.cpp b/util/memory/addstorage_ut.cpp index 9b0c4989ab..f9b66d10fc 100644 --- a/util/memory/addstorage_ut.cpp +++ b/util/memory/addstorage_ut.cpp @@ -1,6 +1,6 @@ #include "addstorage.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> class TAddStorageTest: public TTestBase { UNIT_TEST_SUITE(TAddStorageTest); diff --git a/util/memory/benchmark/pool/main.cpp b/util/memory/benchmark/pool/main.cpp index 0b4d6c94af..0ab611761c 100644 --- a/util/memory/benchmark/pool/main.cpp +++ b/util/memory/benchmark/pool/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/memory/pool.h> #include <util/generic/xrange.h> diff --git a/util/memory/blob.cpp b/util/memory/blob.cpp index 91da5cadca..341071e625 100644 --- a/util/memory/blob.cpp +++ b/util/memory/blob.cpp @@ -179,7 +179,7 @@ static inline TBlob CopyConstruct(const void* data, size_t len) { memcpy(base->Data(), data, len); TBlob ret(base->Data(), len, base.Get()); - Y_UNUSED(base.Release()); + Y_UNUSED(base.Release()); return ret; } @@ -201,7 +201,7 @@ static inline TBlob ConstructFromMap(const TMemoryMap& map, ui64 offset, size_t using TBase = TMappedBlobBase<TCounter>; THolder<TBase> base(new TBase(map, offset, length, mode)); TBlob ret(base->Data(), base->Length(), base.Get()); - Y_UNUSED(base.Release()); + Y_UNUSED(base.Release()); return ret; } @@ -310,7 +310,7 @@ static inline TBlob ReadFromFile(const TFile& file, ui64 offset, size_t length) file.Pload(base->Data(), length, offset); TBlob ret(base->Data(), length, base.Get()); - Y_UNUSED(base.Release()); + Y_UNUSED(base.Release()); return ret; } @@ -356,7 +356,7 @@ static inline TBlob ConstructFromBuffer(TBuffer& in) { THolder<TBase> base(new TBase(in)); TBlob ret(base->Buffer().Data(), base->Buffer().Size(), base.Get()); - Y_UNUSED(base.Release()); + Y_UNUSED(base.Release()); return ret; } @@ -396,7 +396,7 @@ TBlob ConstructFromString(S&& s) { auto base = MakeHolder<TBase>(std::forward<S>(s)); TBlob ret(base->String().data(), base->String().size(), base.Get()); - Y_UNUSED(base.Release()); + Y_UNUSED(base.Release()); return ret; } diff --git a/util/memory/blob_ut.cpp b/util/memory/blob_ut.cpp index 023f9a0487..1a82ca58db 100644 --- a/util/memory/blob_ut.cpp +++ b/util/memory/blob_ut.cpp @@ -1,6 +1,6 @@ #include "blob.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/system/tempfile.h> #include <util/folder/path.h> diff --git a/util/memory/pool_ut.cpp b/util/memory/pool_ut.cpp index 1158a8ca42..d3a0123166 100644 --- a/util/memory/pool_ut.cpp +++ b/util/memory/pool_ut.cpp @@ -1,6 +1,6 @@ #include "pool.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/stream/output.h> diff --git a/util/memory/smallobj_ut.cpp b/util/memory/smallobj_ut.cpp index 86003d1d53..49483c498d 100644 --- a/util/memory/smallobj_ut.cpp +++ b/util/memory/smallobj_ut.cpp @@ -1,6 +1,6 @@ #include "smallobj.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/generic/hash_set.h> diff --git a/util/memory/tempbuf.h b/util/memory/tempbuf.h index 334670eb1e..ad66fee283 100644 --- a/util/memory/tempbuf.h +++ b/util/memory/tempbuf.h @@ -26,26 +26,26 @@ public: TTempBuf& operator=(TTempBuf&& b) noexcept; Y_PURE_FUNCTION char* Data() noexcept; - + Y_PURE_FUNCTION const char* Data() const noexcept; - + Y_PURE_FUNCTION char* Current() noexcept; - + Y_PURE_FUNCTION const char* Current() const noexcept; - + Y_PURE_FUNCTION size_t Size() const noexcept; - + Y_PURE_FUNCTION size_t Filled() const noexcept; - + Y_PURE_FUNCTION size_t Left() const noexcept; - + void Reset() noexcept; void SetPos(size_t off); char* Proceed(size_t off); void Append(const void* data, size_t len); Y_PURE_FUNCTION bool IsNull() const noexcept; - + private: TIntrusivePtr<TImpl> Impl_; }; diff --git a/util/memory/tempbuf_ut.cpp b/util/memory/tempbuf_ut.cpp index d6bcf9d546..9a37eadd55 100644 --- a/util/memory/tempbuf_ut.cpp +++ b/util/memory/tempbuf_ut.cpp @@ -2,7 +2,7 @@ #include <utility> -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> class TTempBufTest: public TTestBase { UNIT_TEST_SUITE(TTempBufTest); |