diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/json/flex_buffers | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/flex_buffers')
-rw-r--r-- | library/cpp/json/flex_buffers/cvt.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/json/flex_buffers/cvt.cpp b/library/cpp/json/flex_buffers/cvt.cpp index c0c8d97edb..fee0cea0b8 100644 --- a/library/cpp/json/flex_buffers/cvt.cpp +++ b/library/cpp/json/flex_buffers/cvt.cpp @@ -19,49 +19,49 @@ namespace { { } - bool OnNull() override { + bool OnNull() override { B.Null(); return true; } - bool OnBoolean(bool v) override { + bool OnBoolean(bool v) override { B.Bool(v); return true; } - bool OnInteger(long long v) override { + bool OnInteger(long long v) override { B.Int(v); return true; } - bool OnUInteger(unsigned long long v) override { + bool OnUInteger(unsigned long long v) override { B.UInt(v); return true; } - bool OnDouble(double v) override { + bool OnDouble(double v) override { B.Double(v); return true; } - bool OnString(const TStringBuf& v) override { + bool OnString(const TStringBuf& v) override { B.String(v.data(), v.size()); return true; } - bool OnOpenMap() override { + bool OnOpenMap() override { S.push_back(B.StartMap()); return true; } - bool OnMapKey(const TStringBuf& v) override { + bool OnMapKey(const TStringBuf& v) override { auto iv = P.AppendCString(v); B.Key(iv.data(), iv.size()); @@ -69,33 +69,33 @@ namespace { return true; } - bool OnCloseMap() override { + bool OnCloseMap() override { B.EndMap(PopOffset()); return true; } - bool OnOpenArray() override { + bool OnOpenArray() override { S.push_back(B.StartVector()); return true; } - bool OnCloseArray() override { + bool OnCloseArray() override { B.EndVector(PopOffset(), false, false); return true; } - bool OnStringNoCopy(const TStringBuf& s) override { + bool OnStringNoCopy(const TStringBuf& s) override { return OnString(s); } - bool OnMapKeyNoCopy(const TStringBuf& s) override { + bool OnMapKeyNoCopy(const TStringBuf& s) override { return OnMapKey(s); } - bool OnEnd() override { + bool OnEnd() override { B.Finish(); Y_ENSURE(S.empty()); @@ -103,7 +103,7 @@ namespace { return true; } - void OnError(size_t, TStringBuf reason) override { + void OnError(size_t, TStringBuf reason) override { ythrow yexception() << reason; } |