Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-28 10:10:19

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2008 Google Inc.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef GOOGLE_PROTOBUF_JSON_INTERNAL_UNPARSER_H__
0009 #define GOOGLE_PROTOBUF_JSON_INTERNAL_UNPARSER_H__
0010 
0011 #include <string>
0012 
0013 #include "absl/strings/string_view.h"
0014 #include "google/protobuf/json/internal/writer.h"
0015 #include "google/protobuf/message.h"
0016 #include "google/protobuf/util/type_resolver.h"
0017 
0018 namespace google {
0019 namespace protobuf {
0020 namespace json_internal {
0021 // Internal version of google::protobuf::util::MessageToJsonString; see json_util.h for
0022 // details.
0023 absl::Status MessageToJsonString(const Message& message, std::string* output,
0024                                  json_internal::WriterOptions options);
0025 // Internal version of google::protobuf::util::BinaryToJsonStream; see json_util.h for
0026 // details.
0027 absl::Status BinaryToJsonStream(google::protobuf::util::TypeResolver* resolver,
0028                                 const std::string& type_url,
0029                                 io::ZeroCopyInputStream* binary_input,
0030                                 io::ZeroCopyOutputStream* json_output,
0031                                 json_internal::WriterOptions options);
0032 }  // namespace json_internal
0033 }  // namespace protobuf
0034 }  // namespace google
0035 
0036 #endif  // GOOGLE_PROTOBUF_JSON_INTERNAL_UNPARSER_H__