aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authorprout <prout@yandex-team.ru>2022-02-10 16:49:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:43 +0300
commitd2247f243d31adde8feb765324e40c83c5a90999 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/memory
parent7b7fa28b9099b7adca890459a699c6ba5eeff4ca (diff)
downloadydb-d2247f243d31adde8feb765324e40c83c5a90999.tar.gz
Restoring authorship annotation for <prout@yandex-team.ru>. Commit 2 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 d67aeac7bb..09a2d0f140 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 226c9c0aaa..334670eb1e 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());
}