aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/tempbuf.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/memory/tempbuf.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 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 15a475680e..334670eb1e 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());
}