aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/blockcodecs/core
diff options
context:
space:
mode:
authordvorkanton <dvorkanton@yandex-team.ru>2022-02-10 16:46:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:04 +0300
commitce1ca0f8ad5b8231d32b35629f85bb09beea1bfb (patch)
tree19b21fdcf9ef01e0c94a15434fb08a4a555a79e9 /library/cpp/blockcodecs/core
parentfc361854fd6ee8d747229b090f0b8018e260d1fb (diff)
downloadydb-ce1ca0f8ad5b8231d32b35629f85bb09beea1bfb.tar.gz
Restoring authorship annotation for <dvorkanton@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core')
-rw-r--r--library/cpp/blockcodecs/core/codecs.cpp28
-rw-r--r--library/cpp/blockcodecs/core/codecs.h4
-rw-r--r--library/cpp/blockcodecs/core/register.h20
3 files changed, 26 insertions, 26 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;
}
diff --git a/library/cpp/blockcodecs/core/codecs.h b/library/cpp/blockcodecs/core/codecs.h
index 9c93c00274..2662759b9a 100644
--- a/library/cpp/blockcodecs/core/codecs.h
+++ b/library/cpp/blockcodecs/core/codecs.h
@@ -73,8 +73,8 @@ namespace NBlockCodecs {
size_t GetDecompressedLength(const TData& in) const;
};
- using TCodecPtr = THolder<ICodec>;
-
+ using TCodecPtr = THolder<ICodec>;
+
const ICodec* Codec(const TStringBuf& name);
// some aux methods
diff --git a/library/cpp/blockcodecs/core/register.h b/library/cpp/blockcodecs/core/register.h
index fa1186dd70..632a41e4a8 100644
--- a/library/cpp/blockcodecs/core/register.h
+++ b/library/cpp/blockcodecs/core/register.h
@@ -1,10 +1,10 @@
-#pragma once
-
-#include "codecs.h"
-
-namespace NBlockCodecs{
-
- void RegisterCodec(TCodecPtr codec);
- void RegisterAlias(TStringBuf from, TStringBuf to);
-
-}
+#pragma once
+
+#include "codecs.h"
+
+namespace NBlockCodecs{
+
+ void RegisterCodec(TCodecPtr codec);
+ void RegisterAlias(TStringBuf from, TStringBuf to);
+
+}