aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/blockcodecs/core/codecs.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/blockcodecs/core/codecs.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core/codecs.cpp')
-rw-r--r--library/cpp/blockcodecs/core/codecs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.cpp b/library/cpp/blockcodecs/core/codecs.cpp
index 21506e812b..072da37087 100644
--- a/library/cpp/blockcodecs/core/codecs.cpp
+++ b/library/cpp/blockcodecs/core/codecs.cpp
@@ -61,8 +61,8 @@ namespace {
TDeque<TString> Tmp;
TNullCodec Null;
- TVector<TCodecPtr> Codecs;
- typedef THashMap<TStringBuf, ICodec*> TRegistry;
+ TVector<TCodecPtr> Codecs;
+ typedef THashMap<TStringBuf, ICodec*> TRegistry;
TRegistry Registry;
// SEARCH-8344: Global decompressed size limiter (to prevent remote DoS)
@@ -82,7 +82,7 @@ TCodecList NBlockCodecs::ListAllCodecs() {
return ret;
}
-TString NBlockCodecs::ListAllCodecsAsString() {
+TString NBlockCodecs::ListAllCodecsAsString() {
return JoinSeq(TStringBuf(","), ListAllCodecs());
}
@@ -127,7 +127,7 @@ void ICodec::Decode(const TData& in, TBuffer& out) const {
out.Resize(Decompress(in, out.Data()));
}
-void ICodec::Encode(const TData& in, TString& out) const {
+void ICodec::Encode(const TData& in, TString& out) const {
const size_t maxLen = MaxCompressedLength(in);
out.ReserveAndResize(maxLen);
@@ -136,7 +136,7 @@ void ICodec::Encode(const TData& in, TString& out) const {
out.resize(actualLen);
}
-void ICodec::Decode(const TData& in, TString& out) const {
+void ICodec::Decode(const TData& in, TString& out) const {
const size_t maxLen = GetDecompressedLength(in);
out.ReserveAndResize(maxLen);