diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/stream/null.h | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/null.h')
-rw-r--r-- | util/stream/null.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/util/stream/null.h b/util/stream/null.h index 8c335a9a78..6d80dd3f09 100644 --- a/util/stream/null.h +++ b/util/stream/null.h @@ -1,8 +1,8 @@ #pragma once - + #include "zerocopy.h" #include "output.h" - + /** * @addtogroup Streams * @{ @@ -12,50 +12,50 @@ * Null input stream. Does nothing, contains no data. */ class TNullInput: public IZeroCopyInput { -public: +public: TNullInput() noexcept; ~TNullInput() override; - -private: + +private: size_t DoRead(void* buf, size_t len) override; size_t DoSkip(size_t len) override; size_t DoNext(const void** ptr, size_t len) override; -}; - +}; + /** * Null output stream. Just ignores whatever is written into it. */ class TNullOutput: public IOutputStream { -public: +public: TNullOutput() noexcept; ~TNullOutput() override; - + TNullOutput(TNullOutput&&) noexcept = default; TNullOutput& operator=(TNullOutput&&) noexcept = default; -private: +private: void DoWrite(const void* buf, size_t len) override; -}; - +}; + /** * Null input-output stream. * * @see TNullInput * @see TNullOutput */ -class TNullIO: public TNullInput, public TNullOutput { -public: +class TNullIO: public TNullInput, public TNullOutput { +public: TNullIO() noexcept; ~TNullIO() override; -}; - +}; + namespace NPrivate { TNullIO& StdNullStream() noexcept; } - + /** * Standard null stream. */ #define Cnull (::NPrivate::StdNullStream()) - + /** @} */ |