diff options
author | dvorkanton <dvorkanton@yandex-team.ru> | 2022-02-10 16:46:04 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:04 +0300 |
commit | ce1ca0f8ad5b8231d32b35629f85bb09beea1bfb (patch) | |
tree | 19b21fdcf9ef01e0c94a15434fb08a4a555a79e9 /library/cpp/blockcodecs/core/codecs.cpp | |
parent | fc361854fd6ee8d747229b090f0b8018e260d1fb (diff) | |
download | ydb-ce1ca0f8ad5b8231d32b35629f85bb09beea1bfb.tar.gz |
Restoring authorship annotation for <dvorkanton@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core/codecs.cpp')
-rw-r--r-- | library/cpp/blockcodecs/core/codecs.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.cpp b/library/cpp/blockcodecs/core/codecs.cpp index 21506e812b..d9eed9ca8f 100644 --- a/library/cpp/blockcodecs/core/codecs.cpp +++ b/library/cpp/blockcodecs/core/codecs.cpp @@ -1,6 +1,6 @@ #include "codecs.h" #include "common.h" -#include "register.h" +#include "register.h" #include <util/ysaveload.h> #include <util/stream/null.h> @@ -49,11 +49,11 @@ namespace { Registry[codec->Name()] = codec; } - inline void Add(TCodecPtr codec) { - Codecs.push_back(std::move(codec)); - Add(Codecs.back().Get()); - } - + inline void Add(TCodecPtr codec) { + Codecs.push_back(std::move(codec)); + Add(Codecs.back().Get()); + } + inline void Alias(TStringBuf from, TStringBuf to) { Tmp.emplace_back(from); Registry[Tmp.back()] = Registry[to]; @@ -86,14 +86,14 @@ TString NBlockCodecs::ListAllCodecsAsString() { return JoinSeq(TStringBuf(","), ListAllCodecs()); } -void NBlockCodecs::RegisterCodec(TCodecPtr codec) { - Singleton<TCodecFactory>()->Add(std::move(codec)); -} - -void NBlockCodecs::RegisterAlias(TStringBuf from, TStringBuf to) { - Singleton<TCodecFactory>()->Alias(from, to); -} - +void NBlockCodecs::RegisterCodec(TCodecPtr codec) { + Singleton<TCodecFactory>()->Add(std::move(codec)); +} + +void NBlockCodecs::RegisterAlias(TStringBuf from, TStringBuf to) { + Singleton<TCodecFactory>()->Alias(from, to); +} + void NBlockCodecs::SetMaxPossibleDecompressedLength(size_t maxPossibleDecompressedLength) { Singleton<TCodecFactory>()->MaxPossibleDecompressedLength = maxPossibleDecompressedLength; } |