Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
// Protocol Buffers - Google's data interchange format |
|
// Copyright 2023 Google LLC. All rights reserved. |
|
// |
|
// Use of this source code is governed by a BSD-style |
|
// license that can be found in the LICENSE file or at |
|
// https://developers.google.com/open-source/licenses/bsd |
|
#ifndef UPB_PROTOS_PROTOS_H_ |
|
#define UPB_PROTOS_PROTOS_H_ |
|
#include "google/protobuf/hpb/hpb.h" |
|
namespace protos { |
|
namespace internal { |
|
using hpb::internal::CreateMessageProxy; |
|
using hpb::internal::ExtensionIdentifier; |
|
using hpb::internal::GetArena; |
|
using hpb::internal::GetInternalMsg; |
|
using hpb::internal::PrivateAccess; |
|
using hpb::internal::Serialize; |
|
using hpb::internal::SetExtension; |
|
template <typename T> |
|
typename T::CProxy CreateMessage(const upb_Message* msg, upb_Arena* arena) { |
|
return hpb::interop::upb::MakeCHandle<T>(msg, arena); |
|
} |
|
} // namespace internal |
|
using hpb::Parse; |
|
using hpb::Serialize; |
|
|
|
using hpb::GetExtension; |
|
using hpb::HasExtension; |
|
using hpb::SetExtension; |
|
|
|
using hpb::Arena; |
|
using hpb::Ptr; |
|
} // namespace protos |
|
#endif
|
|
|