diff options
author | vdf <vdf@yandex-team.ru> | 2022-02-10 16:48:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:43 +0300 |
commit | b74c16abd264d7a738bce3733832ce988b28efc4 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/util/pb_io.cpp | |
parent | c52fa3470f4973c134b3c09a16dcdc7167eaece3 (diff) | |
download | ydb-b74c16abd264d7a738bce3733832ce988b28efc4.tar.gz |
Restoring authorship annotation for <vdf@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/util/pb_io.cpp')
-rw-r--r-- | library/cpp/protobuf/util/pb_io.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/protobuf/util/pb_io.cpp b/library/cpp/protobuf/util/pb_io.cpp index 6ed26e553e..6270ee0624 100644 --- a/library/cpp/protobuf/util/pb_io.cpp +++ b/library/cpp/protobuf/util/pb_io.cpp @@ -43,14 +43,14 @@ namespace NProtoBuf { } Base64EncodeUrl(rawData, dataBase64); - } + } TString SerializeToBase64String(const Message& m) { TString s; SerializeToBase64String(m, s); return s; - } - + } + bool TrySerializeToBase64String(const Message& m, TString& dataBase64) { try { SerializeToBase64String(m, dataBase64); @@ -67,8 +67,8 @@ namespace NProtoBuf { TString result; printer.PrintToString(message, &result); return result; - } - + } + bool MergePartialFromString(NProtoBuf::Message& m, const TStringBuf serializedProtoMessage) { google::protobuf::io::CodedInputStream input(reinterpret_cast<const ui8*>(serializedProtoMessage.data()), serializedProtoMessage.size()); bool ok = m.MergePartialFromCodedStream(&input); |