aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/tempbuf.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/memory/tempbuf.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/memory/tempbuf.h')
-rw-r--r--util/memory/tempbuf.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/memory/tempbuf.h b/util/memory/tempbuf.h
index 334670eb1e..15a475680e 100644
--- a/util/memory/tempbuf.h
+++ b/util/memory/tempbuf.h
@@ -18,12 +18,12 @@ public:
TTempBuf();
TTempBuf(size_t len);
- TTempBuf(const TTempBuf& b) noexcept;
- TTempBuf(TTempBuf&& b) noexcept;
- ~TTempBuf();
+ TTempBuf(const TTempBuf& b) noexcept;
+ TTempBuf(TTempBuf&& b) noexcept;
+ ~TTempBuf();
- TTempBuf& operator=(const TTempBuf& b) noexcept;
- TTempBuf& operator=(TTempBuf&& b) noexcept;
+ TTempBuf& operator=(const TTempBuf& b) noexcept;
+ TTempBuf& operator=(TTempBuf&& b) noexcept;
Y_PURE_FUNCTION char* Data() noexcept;
@@ -39,7 +39,7 @@ public:
Y_PURE_FUNCTION size_t Left() const noexcept;
- void Reset() noexcept;
+ void Reset() noexcept;
void SetPos(size_t off);
char* Proceed(size_t off);
void Append(const void* data, size_t len);
@@ -53,10 +53,10 @@ private:
template <typename T>
class TTempArray: private TTempBuf {
private:
- static T* TypedPointer(char* pointer) noexcept {
+ static T* TypedPointer(char* pointer) noexcept {
return reinterpret_cast<T*>(pointer);
}
- static const T* TypedPointer(const char* pointer) noexcept {
+ static const T* TypedPointer(const char* pointer) noexcept {
return reinterpret_cast<const T*>(pointer);
}
static constexpr size_t RawSize(const size_t size) noexcept {
@@ -74,26 +74,26 @@ public:
{
}
- T* Data() noexcept {
+ T* Data() noexcept {
return TypedPointer(TTempBuf::Data());
}
- const T* Data() const noexcept {
+ const T* Data() const noexcept {
return TypedPointer(TTempBuf::Data());
}
- T* Current() noexcept {
+ T* Current() noexcept {
return TypedPointer(TTempBuf::Current());
}
- const T* Current() const noexcept {
+ const T* Current() const noexcept {
return TypedPointer(TTempBuf::Current());
}
- size_t Size() const noexcept {
+ size_t Size() const noexcept {
return TypedSize(TTempBuf::Size());
}
- size_t Filled() const noexcept {
+ size_t Filled() const noexcept {
return TypedSize(TTempBuf::Filled());
}