diff options
author | albert <albert@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
commit | a817f5de12611ec73085eba17f8ec7740a46bdb7 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/memory | |
parent | 9f25ef3232c288ca664ceee6c376cf64e4349a2e (diff) | |
download | ydb-a817f5de12611ec73085eba17f8ec7740a46bdb7.tar.gz |
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r-- | util/memory/tempbuf.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/memory/tempbuf.cpp b/util/memory/tempbuf.cpp index 17bf3e8bd3..09a2d0f140 100644 --- a/util/memory/tempbuf.cpp +++ b/util/memory/tempbuf.cpp @@ -36,7 +36,7 @@ public: const void* Data() const noexcept { return Data_; } - + inline size_t Size() const noexcept { return Size_; } @@ -57,7 +57,7 @@ public: Y_ASSERT(off <= Size()); Offset_ = off; } - + inline void Proceed(size_t off) { Y_ASSERT(off <= Left()); @@ -225,8 +225,8 @@ char* TTempBuf::Data() noexcept { const char* TTempBuf::Data() const noexcept { return static_cast<const char*>(Impl_->Data()); -} - +} + size_t TTempBuf::Size() const noexcept { return Impl_->Size(); } @@ -251,10 +251,10 @@ void TTempBuf::Reset() noexcept { Impl_->Reset(); } -void TTempBuf::SetPos(size_t off) { - Impl_->SetPos(off); -} - +void TTempBuf::SetPos(size_t off) { + Impl_->SetPos(off); +} + char* TTempBuf::Proceed(size_t off) { char* ptr = Current(); Impl_->Proceed(off); |