summaryrefslogtreecommitdiffstats
path: root/util/stream/null.h
diff options
context:
space:
mode:
authorAlexander Fokin <[email protected]>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/stream/null.h
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
Restoring authorship annotation for Alexander Fokin <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/stream/null.h')
-rw-r--r--util/stream/null.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/util/stream/null.h b/util/stream/null.h
index bb97148ac61..8c335a9a789 100644
--- a/util/stream/null.h
+++ b/util/stream/null.h
@@ -1,16 +1,16 @@
#pragma once
-#include "zerocopy.h"
-#include "output.h"
-
-/**
- * @addtogroup Streams
- * @{
- */
-
-/**
- * Null input stream. Does nothing, contains no data.
- */
+#include "zerocopy.h"
+#include "output.h"
+
+/**
+ * @addtogroup Streams
+ * @{
+ */
+
+/**
+ * Null input stream. Does nothing, contains no data.
+ */
class TNullInput: public IZeroCopyInput {
public:
TNullInput() noexcept;
@@ -22,9 +22,9 @@ private:
size_t DoNext(const void** ptr, size_t len) override;
};
-/**
- * Null output stream. Just ignores whatever is written into it.
- */
+/**
+ * Null output stream. Just ignores whatever is written into it.
+ */
class TNullOutput: public IOutputStream {
public:
TNullOutput() noexcept;
@@ -37,25 +37,25 @@ private:
void DoWrite(const void* buf, size_t len) override;
};
-/**
- * Null input-output stream.
- *
- * @see TNullInput
- * @see TNullOutput
- */
+/**
+ * Null input-output stream.
+ *
+ * @see TNullInput
+ * @see TNullOutput
+ */
class TNullIO: public TNullInput, public TNullOutput {
public:
TNullIO() noexcept;
~TNullIO() override;
};
-namespace NPrivate {
+namespace NPrivate {
TNullIO& StdNullStream() noexcept;
-}
+}
-/**
- * Standard null stream.
- */
-#define Cnull (::NPrivate::StdNullStream())
+/**
+ * Standard null stream.
+ */
+#define Cnull (::NPrivate::StdNullStream())
-/** @} */
+/** @} */