diff options
author | monnoroch <monnoroch@yandex-team.ru> | 2022-02-10 16:50:35 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:35 +0300 |
commit | 1377125eb4f4636322403fcf4c5e197559a72c1a (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/json2proto.h | |
parent | ff230fa56fa52d83a67896163c937c432faabff1 (diff) | |
download | ydb-1377125eb4f4636322403fcf4c5e197559a72c1a.tar.gz |
Restoring authorship annotation for <monnoroch@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.h')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h index 2ae77cad2c..4c33498dfa 100644 --- a/library/cpp/protobuf/json/json2proto.h +++ b/library/cpp/protobuf/json/json2proto.h @@ -6,7 +6,7 @@ #include <library/cpp/json/json_reader.h> #include <library/cpp/json/json_value.h> -#include <util/stream/input.h> +#include <util/stream/input.h> #include <util/stream/str.h> #include <util/stream/mem.h> @@ -15,7 +15,7 @@ namespace google { class Message; } } - + namespace NProtobufJson { struct TJson2ProtoConfig { using TSelf = TJson2ProtoConfig; @@ -198,21 +198,21 @@ namespace NProtobufJson { readerConfig.DontValidateUtf8 = true; return Json2Proto<T>(in, readerConfig, config); } - + /// @throw yexception template <typename T> T Json2Proto(const TString& value, const TJson2ProtoConfig& config = TJson2ProtoConfig()) { TStringInput in(value); return Json2Proto<T>(in, config); } - + /// @throw yexception template <typename T> T Json2Proto(const TStringBuf& value, const TJson2ProtoConfig& config = TJson2ProtoConfig()) { TMemoryInput in(value); return Json2Proto<T>(in, config); } - + /// @throw yexception template <typename T> T Json2Proto(const char* ptr, const TJson2ProtoConfig& config = TJson2ProtoConfig()) { |