aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/static/tools/common
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/codecs/static/tools/common
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/codecs/static/tools/common')
-rw-r--r--library/cpp/codecs/static/tools/common/ct_common.cpp10
-rw-r--r--library/cpp/codecs/static/tools/common/ct_common.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/codecs/static/tools/common/ct_common.cpp b/library/cpp/codecs/static/tools/common/ct_common.cpp
index ab4a2fac3f..fe77691280 100644
--- a/library/cpp/codecs/static/tools/common/ct_common.cpp
+++ b/library/cpp/codecs/static/tools/common/ct_common.cpp
@@ -9,7 +9,7 @@
#include <util/system/hp_timer.h>
namespace NCodecs {
- TString TComprStats::Format(const TStaticCodecInfo& info, bool checkMode) const {
+ TString TComprStats::Format(const TStaticCodecInfo& info, bool checkMode) const {
TStringBuilder s;
s << "raw size/item: " << RawSizePerRecord() << Endl;
s << "enc.size/item: " << EncSizePerRecord() << Endl;
@@ -26,7 +26,7 @@ namespace NCodecs {
return s;
}
- TComprStats TestCodec(const ICodec& c, const TVector<TString>& input) {
+ TComprStats TestCodec(const ICodec& c, const TVector<TString>& input) {
TComprStats stats;
TBuffer encodeBuffer;
@@ -51,10 +51,10 @@ namespace NCodecs {
return stats;
}
- void ParseBlob(TVector<TString>& result, EDataStreamFormat fmt, const TBlob& blob) {
+ void ParseBlob(TVector<TString>& result, EDataStreamFormat fmt, const TBlob& blob) {
TStringBuf bin(blob.AsCharPtr(), blob.Size());
TStringBuf line;
- TString buffer;
+ TString buffer;
while (bin.ReadLine(line)) {
if (DSF_BASE64_LF == fmt) {
Base64Decode(line, buffer);
@@ -67,7 +67,7 @@ namespace NCodecs {
}
}
- TBlob GetInputBlob(const TString& dataFile) {
+ TBlob GetInputBlob(const TString& dataFile) {
return dataFile && dataFile != "-" ? TBlob::FromFile(dataFile) : TBlob::FromStream(Cin);
}
diff --git a/library/cpp/codecs/static/tools/common/ct_common.h b/library/cpp/codecs/static/tools/common/ct_common.h
index a66c476c3d..9d3dcbda93 100644
--- a/library/cpp/codecs/static/tools/common/ct_common.h
+++ b/library/cpp/codecs/static/tools/common/ct_common.h
@@ -1,6 +1,6 @@
#pragma once
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/vector.h>
#include <util/memory/blob.h>
#include <cmath>
@@ -57,10 +57,10 @@ namespace NCodecs {
return PerRecord((1 - compr) * RawSize);
}
- TString Format(const TStaticCodecInfo&, bool checkMode) const;
+ TString Format(const TStaticCodecInfo&, bool checkMode) const;
};
- TComprStats TestCodec(const ICodec&, const TVector<TString>& data);
+ TComprStats TestCodec(const ICodec&, const TVector<TString>& data);
enum EDataStreamFormat {
DSF_NONE,
@@ -68,8 +68,8 @@ namespace NCodecs {
DSF_BASE64_LF /* "base64" */,
};
- void ParseBlob(TVector<TString>&, EDataStreamFormat, const TBlob&);
+ void ParseBlob(TVector<TString>&, EDataStreamFormat, const TBlob&);
- TBlob GetInputBlob(const TString& dataFile);
+ TBlob GetInputBlob(const TString& dataFile);
}