aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/streams/brotli/brotli.h
diff options
context:
space:
mode:
authorlevysotsky <levysotsky@yandex-team.ru>2022-02-10 16:47:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:29 +0300
commit57f874ffc2a75047c1c4fea7a9fc86cb0f56ed50 (patch)
treeba6454f353979bb4bafaf230cafdf3e02ea120b2 /library/cpp/streams/brotli/brotli.h
parent23d4769f0fea97cfb1028710e50f2b5ecd0ac2c0 (diff)
downloadydb-57f874ffc2a75047c1c4fea7a9fc86cb0f56ed50.tar.gz
Restoring authorship annotation for <levysotsky@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/streams/brotli/brotli.h')
-rw-r--r--library/cpp/streams/brotli/brotli.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/library/cpp/streams/brotli/brotli.h b/library/cpp/streams/brotli/brotli.h
index b3af869e29..b7e4034b86 100644
--- a/library/cpp/streams/brotli/brotli.h
+++ b/library/cpp/streams/brotli/brotli.h
@@ -1,52 +1,52 @@
-#pragma once
-
-#include <util/generic/ptr.h>
-#include <util/stream/input.h>
-#include <util/stream/output.h>
-
-/**
- * @addtogroup Streams_Archs
- * @{
- */
-
+#pragma once
+
+#include <util/generic/ptr.h>
+#include <util/stream/input.h>
+#include <util/stream/output.h>
+
+/**
+ * @addtogroup Streams_Archs
+ * @{
+ */
+
class TBrotliCompress: public IOutputStream {
-public:
- static constexpr int BEST_QUALITY = 11;
-
- /**
- @param slave stream to write compressed data to
- @param quality the higher the quality, the slower and better the compression. Range is 0 to 11.
- */
- explicit TBrotliCompress(IOutputStream* slave, int quality = BEST_QUALITY);
- ~TBrotliCompress() override;
-
-private:
- void DoWrite(const void* buffer, size_t size) override;
- void DoFlush() override;
- void DoFinish() override;
-
-public:
- class TImpl;
- THolder<TImpl> Impl_;
-};
-
-////////////////////////////////////////////////////////////////////////////////
-
+public:
+ static constexpr int BEST_QUALITY = 11;
+
+ /**
+ @param slave stream to write compressed data to
+ @param quality the higher the quality, the slower and better the compression. Range is 0 to 11.
+ */
+ explicit TBrotliCompress(IOutputStream* slave, int quality = BEST_QUALITY);
+ ~TBrotliCompress() override;
+
+private:
+ void DoWrite(const void* buffer, size_t size) override;
+ void DoFlush() override;
+ void DoFinish() override;
+
+public:
+ class TImpl;
+ THolder<TImpl> Impl_;
+};
+
+////////////////////////////////////////////////////////////////////////////////
+
class TBrotliDecompress: public IInputStream {
-public:
- /**
- @param slave stream to read compressed data from
- @param bufferSize approximate size of buffer compressed data is read in
- */
- explicit TBrotliDecompress(IInputStream* slave, size_t bufferSize = 8 * 1024);
- ~TBrotliDecompress() override;
-
-private:
- size_t DoRead(void* buffer, size_t size) override;
-
-private:
- class TImpl;
- THolder<TImpl> Impl_;
-};
-
-/** @} */
+public:
+ /**
+ @param slave stream to read compressed data from
+ @param bufferSize approximate size of buffer compressed data is read in
+ */
+ explicit TBrotliDecompress(IInputStream* slave, size_t bufferSize = 8 * 1024);
+ ~TBrotliDecompress() override;
+
+private:
+ size_t DoRead(void* buffer, size_t size) override;
+
+private:
+ class TImpl;
+ THolder<TImpl> Impl_;
+};
+
+/** @} */