aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authorprout <prout@yandex-team.ru>2022-02-10 16:49:42 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:42 +0300
commit7b7fa28b9099b7adca890459a699c6ba5eeff4ca (patch)
treecffe238e08f715008f864d223dd0db8fc1f92f9f /util/memory
parent0fd1998e1b2369f50fb694556f817d3c7fef10c8 (diff)
downloadydb-7b7fa28b9099b7adca890459a699c6ba5eeff4ca.tar.gz
Restoring authorship annotation for <prout@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r--util/memory/tempbuf.cpp6
-rw-r--r--util/memory/tempbuf.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/util/memory/tempbuf.cpp b/util/memory/tempbuf.cpp
index 09a2d0f140..d67aeac7bb 100644
--- a/util/memory/tempbuf.cpp
+++ b/util/memory/tempbuf.cpp
@@ -236,9 +236,9 @@ char* TTempBuf::Current() noexcept {
}
const char* TTempBuf::Current() const noexcept {
- return Data() + Filled();
-}
-
+ return Data() + Filled();
+}
+
size_t TTempBuf::Filled() const noexcept {
return Impl_->Filled();
}
diff --git a/util/memory/tempbuf.h b/util/memory/tempbuf.h
index 334670eb1e..226c9c0aaa 100644
--- a/util/memory/tempbuf.h
+++ b/util/memory/tempbuf.h
@@ -68,7 +68,7 @@ private:
public:
TTempArray() = default;
-
+
TTempArray(size_t len)
: TTempBuf(RawSize(len))
{
@@ -77,11 +77,11 @@ public:
T* Data() noexcept {
return TypedPointer(TTempBuf::Data());
}
-
+
const T* Data() const noexcept {
return TypedPointer(TTempBuf::Data());
}
-
+
T* Current() noexcept {
return TypedPointer(TTempBuf::Current());
}
@@ -89,7 +89,7 @@ public:
const T* Current() const noexcept {
return TypedPointer(TTempBuf::Current());
}
-
+
size_t Size() const noexcept {
return TypedSize(TTempBuf::Size());
}