summaryrefslogtreecommitdiffstats
path: root/util/memory/tempbuf.cpp
diff options
context:
space:
mode:
authoralbert <[email protected]>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:14 +0300
commit9f25ef3232c288ca664ceee6c376cf64e4349a2e (patch)
treeb192eaf3150845f7302fafd460a972b0439d6fe5 /util/memory/tempbuf.cpp
parent6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/memory/tempbuf.cpp')
-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 09a2d0f140b..17bf3e8bd30 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);