aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/zerocopy.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/stream/zerocopy.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/zerocopy.h')
-rw-r--r--util/stream/zerocopy.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/stream/zerocopy.h b/util/stream/zerocopy.h
index 9c99326d55..3315aa3a51 100644
--- a/util/stream/zerocopy.h
+++ b/util/stream/zerocopy.h
@@ -6,7 +6,7 @@
#include "input.h"
-class IOutputStream;
+class IOutputStream;
/**
* @addtogroup Streams
@@ -18,13 +18,13 @@ class IOutputStream;
*
* Derived classes must implement `DoNext` method.
*/
-class IZeroCopyInput: public IInputStream {
+class IZeroCopyInput: public IInputStream {
public:
- IZeroCopyInput() noexcept = default;
- ~IZeroCopyInput() override;
+ IZeroCopyInput() noexcept = default;
+ ~IZeroCopyInput() override;
- IZeroCopyInput(IZeroCopyInput&&) noexcept = default;
- IZeroCopyInput& operator=(IZeroCopyInput&&) noexcept = default;
+ IZeroCopyInput(IZeroCopyInput&&) noexcept = default;
+ IZeroCopyInput& operator=(IZeroCopyInput&&) noexcept = default;
/**
* Returns the next data chunk from this input stream.
@@ -39,7 +39,7 @@ public:
*/
template <class T>
inline size_t Next(T** ptr, size_t len) {
- Y_ASSERT(ptr);
+ Y_ASSERT(ptr);
return DoNext((const void**)ptr, len);
}
@@ -52,7 +52,7 @@ public:
protected:
size_t DoRead(void* buf, size_t len) override;
size_t DoSkip(size_t len) override;
- ui64 DoReadAll(IOutputStream& out) override;
+ ui64 DoReadAll(IOutputStream& out) override;
virtual size_t DoNext(const void** ptr, size_t len) = 0;
};
@@ -61,13 +61,13 @@ protected:
*
* Derived classes must implement `DoUndo` method.
*/
-class IZeroCopyInputFastReadTo: public IZeroCopyInput {
+class IZeroCopyInputFastReadTo: public IZeroCopyInput {
public:
- IZeroCopyInputFastReadTo() noexcept = default;
- ~IZeroCopyInputFastReadTo() override;
+ IZeroCopyInputFastReadTo() noexcept = default;
+ ~IZeroCopyInputFastReadTo() override;
- IZeroCopyInputFastReadTo(IZeroCopyInputFastReadTo&&) noexcept = default;
- IZeroCopyInputFastReadTo& operator=(IZeroCopyInputFastReadTo&&) noexcept = default;
+ IZeroCopyInputFastReadTo(IZeroCopyInputFastReadTo&&) noexcept = default;
+ IZeroCopyInputFastReadTo& operator=(IZeroCopyInputFastReadTo&&) noexcept = default;
protected:
size_t DoReadTo(TString& st, char ch) override;