|
|
@ -9,14 +9,13 @@ |
|
|
|
#define GOOGLE_PROTOBUF_HPB_BACKEND_UPB_UPB_H__ |
|
|
|
#define GOOGLE_PROTOBUF_HPB_BACKEND_UPB_UPB_H__ |
|
|
|
|
|
|
|
|
|
|
|
#include "google/protobuf/hpb/backend/upb/interop.h" |
|
|
|
#include "google/protobuf/hpb/backend/upb/interop.h" |
|
|
|
#include "google/protobuf/hpb/internal/internal.h" |
|
|
|
|
|
|
|
#include "google/protobuf/hpb/internal/template_help.h" |
|
|
|
#include "google/protobuf/hpb/internal/template_help.h" |
|
|
|
#include "google/protobuf/hpb/ptr.h" |
|
|
|
#include "google/protobuf/hpb/ptr.h" |
|
|
|
|
|
|
|
|
|
|
|
namespace hpb::internal::backend::upb { |
|
|
|
namespace hpb::internal::backend::upb { |
|
|
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
template <typename T> |
|
|
|
void ClearMessage(hpb::internal::PtrOrRaw<T> message) { |
|
|
|
void ClearMessage(hpb::internal::PtrOrRawMutable<T> message) { |
|
|
|
auto ptr = Ptr(message); |
|
|
|
auto ptr = Ptr(message); |
|
|
|
auto minitable = hpb::interop::upb::GetMiniTable(ptr); |
|
|
|
auto minitable = hpb::interop::upb::GetMiniTable(ptr); |
|
|
|
upb_Message_Clear(hpb::interop::upb::GetMessage(ptr), minitable); |
|
|
|
upb_Message_Clear(hpb::interop::upb::GetMessage(ptr), minitable); |
|
|
|