aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/blockcodecs/core
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/blockcodecs/core
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core')
-rw-r--r--library/cpp/blockcodecs/core/codecs.cpp2
-rw-r--r--library/cpp/blockcodecs/core/common.h4
-rw-r--r--library/cpp/blockcodecs/core/stream.cpp10
3 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.cpp b/library/cpp/blockcodecs/core/codecs.cpp
index 43421c1aa5..21506e812b 100644
--- a/library/cpp/blockcodecs/core/codecs.cpp
+++ b/library/cpp/blockcodecs/core/codecs.cpp
@@ -83,7 +83,7 @@ TCodecList NBlockCodecs::ListAllCodecs() {
}
TString NBlockCodecs::ListAllCodecsAsString() {
- return JoinSeq(TStringBuf(","), ListAllCodecs());
+ return JoinSeq(TStringBuf(","), ListAllCodecs());
}
void NBlockCodecs::RegisterCodec(TCodecPtr codec) {
diff --git a/library/cpp/blockcodecs/core/common.h b/library/cpp/blockcodecs/core/common.h
index 8da81b45f9..f05df4d334 100644
--- a/library/cpp/blockcodecs/core/common.h
+++ b/library/cpp/blockcodecs/core/common.h
@@ -56,7 +56,7 @@ namespace NBlockCodecs {
}
TStringBuf Name() const noexcept override {
- return TStringBuf("null");
+ return TStringBuf("null");
}
};
@@ -83,7 +83,7 @@ namespace NBlockCodecs {
WriteUnaligned<ui64>(ptr, (ui64) in.size());
- return Base()->DoCompress(!in ? TData(TStringBuf("")) : in, ptr + 1) + sizeof(*ptr);
+ return Base()->DoCompress(!in ? TData(TStringBuf("")) : in, ptr + 1) + sizeof(*ptr);
}
size_t Decompress(const TData& in, void* out) const override {
diff --git a/library/cpp/blockcodecs/core/stream.cpp b/library/cpp/blockcodecs/core/stream.cpp
index 7a7422738b..4f7db3c32b 100644
--- a/library/cpp/blockcodecs/core/stream.cpp
+++ b/library/cpp/blockcodecs/core/stream.cpp
@@ -12,7 +12,7 @@
using namespace NBlockCodecs;
namespace {
- constexpr size_t MAX_BUF_LEN = 128 * 1024 * 1024;
+ constexpr size_t MAX_BUF_LEN = 128 * 1024 * 1024;
typedef ui16 TCodecID;
typedef ui64 TBlockLen;
@@ -55,11 +55,11 @@ namespace {
TByID ByID;
};
- TCodecID CodecID(const ICodec* c) {
+ TCodecID CodecID(const ICodec* c) {
return TIds::CodecID(c);
}
- const ICodec* CodecByID(TCodecID id) {
+ const ICodec* CodecByID(TCodecID id) {
return Singleton<TIds>()->Find(id);
}
}
@@ -70,7 +70,7 @@ TCodedOutput::TCodedOutput(IOutputStream* out, const ICodec* c, size_t bufLen)
, S_(out)
{
if (bufLen > MAX_BUF_LEN) {
- ythrow yexception() << TStringBuf("too big buffer size: ") << bufLen;
+ ythrow yexception() << TStringBuf("too big buffer size: ") << bufLen;
}
}
@@ -198,7 +198,7 @@ size_t TDecodedInput::DoUnboundedNext(const void** ptr) {
auto codec = CodecByID(codecId);
if (C_) {
- Y_ENSURE(C_->Name() == codec->Name(), TStringBuf("incorrect stream codec"));
+ Y_ENSURE(C_->Name() == codec->Name(), TStringBuf("incorrect stream codec"));
}
if (codec->DecompressedLength(block) > MAX_BUF_LEN) {