Prefer hpb::Arena to upb::Arena in hpb.h

PiperOrigin-RevId: 681595326
pull/18582/head
Hong Shin 2 months ago committed by Copybara-Service
parent 73fe084436
commit 811cc30578
  1. 6
      hpb/hpb.h

@ -152,7 +152,7 @@ constexpr uint32_t ExtensionNumber(
}
template <typename T>
typename T::Proxy CreateMessage(::hpb::Arena& arena) {
typename T::Proxy CreateMessage(hpb::Arena& arena) {
return typename T::Proxy(upb_Message_New(T::minitable(), arena.ptr()),
arena.ptr());
}
@ -279,7 +279,7 @@ absl::StatusOr<T> Parse(absl::string_view bytes,
}
template <typename T>
absl::StatusOr<absl::string_view> Serialize(const T* message, upb::Arena& arena,
absl::StatusOr<absl::string_view> Serialize(const T* message, hpb::Arena& arena,
int options = 0) {
return ::hpb::internal::Serialize(hpb::interop::upb::GetMessage(message),
::hpb::interop::upb::GetMiniTable(message),
@ -287,7 +287,7 @@ absl::StatusOr<absl::string_view> Serialize(const T* message, upb::Arena& arena,
}
template <typename T>
absl::StatusOr<absl::string_view> Serialize(Ptr<T> message, upb::Arena& arena,
absl::StatusOr<absl::string_view> Serialize(Ptr<T> message, hpb::Arena& arena,
int options = 0) {
return ::hpb::internal::Serialize(hpb::interop::upb::GetMessage(message),
::hpb::interop::upb::GetMiniTable(message),

Loading…
Cancel
Save