aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authoralbert <albert@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commita817f5de12611ec73085eba17f8ec7740a46bdb7 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/memory
parent9f25ef3232c288ca664ceee6c376cf64e4349a2e (diff)
downloadydb-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.cpp16
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);