diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/codecs/zstd_dict_codec.h | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/zstd_dict_codec.h')
-rw-r--r-- | library/cpp/codecs/zstd_dict_codec.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/codecs/zstd_dict_codec.h b/library/cpp/codecs/zstd_dict_codec.h index 59c1ad6c60..cdfc5c8285 100644 --- a/library/cpp/codecs/zstd_dict_codec.h +++ b/library/cpp/codecs/zstd_dict_codec.h @@ -1,38 +1,38 @@ -#pragma once - -#include "codecs.h" - -#include <util/generic/ptr.h> - -namespace NCodecs { +#pragma once + +#include "codecs.h" + +#include <util/generic/ptr.h> + +namespace NCodecs { // benchmarks are here: https://st.yandex-team.ru/SEARCH-1655 - + class TZStdDictCodec: public ICodec { class TImpl; TIntrusivePtr<TImpl> Impl; - + public: explicit TZStdDictCodec(ui32 comprLevel = 1); ~TZStdDictCodec() override; - + static TStringBuf MyName() { return "zstd08d"; } - + TString GetName() const override; - + ui8 Encode(TStringBuf in, TBuffer& out) const override; - + void Decode(TStringBuf in, TBuffer& out) const override; - + static TVector<TString> ListCompressionNames(); static int ParseCompressionName(TStringBuf); - + protected: void DoLearn(ISequenceReader& in) override; bool DoTryToLearn(ISequenceReader& in) final; void Save(IOutputStream* out) const override; void Load(IInputStream* in) override; }; - -} + +} |