diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/codecs/static/tools | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/static/tools')
-rw-r--r-- | library/cpp/codecs/static/tools/common/ct_common.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/codecs/static/tools/common/ct_common.cpp b/library/cpp/codecs/static/tools/common/ct_common.cpp index fe77691280..ded3a503ff 100644 --- a/library/cpp/codecs/static/tools/common/ct_common.cpp +++ b/library/cpp/codecs/static/tools/common/ct_common.cpp @@ -36,23 +36,23 @@ namespace NCodecs { decodeBuffer.Clear(); stats.Records += 1; - stats.RawSize += data.size(); + stats.RawSize += data.size(); THPTimer timer; c.Encode(data, encodeBuffer); - stats.EncSize += encodeBuffer.size(); + stats.EncSize += encodeBuffer.size(); stats.EncSeconds += timer.PassedReset(); - c.Decode(TStringBuf{encodeBuffer.data(), encodeBuffer.size()}, decodeBuffer); + c.Decode(TStringBuf{encodeBuffer.data(), encodeBuffer.size()}, decodeBuffer); stats.DecSeconds += timer.PassedReset(); - Y_ENSURE(data == TStringBuf(decodeBuffer.data(), decodeBuffer.size()), "invalid encoding at record " << stats.Records); + Y_ENSURE(data == TStringBuf(decodeBuffer.data(), decodeBuffer.size()), "invalid encoding at record " << stats.Records); } return stats; } void ParseBlob(TVector<TString>& result, EDataStreamFormat fmt, const TBlob& blob) { - TStringBuf bin(blob.AsCharPtr(), blob.Size()); + TStringBuf bin(blob.AsCharPtr(), blob.Size()); TStringBuf line; TString buffer; while (bin.ReadLine(line)) { @@ -63,7 +63,7 @@ namespace NCodecs { if (!line) { continue; } - result.emplace_back(line.data(), line.size()); + result.emplace_back(line.data(), line.size()); } } |