|
|
|
@ -7,9 +7,9 @@ |
|
|
|
|
|
|
|
|
|
#include "google/protobuf/implicit_weak_message.h" |
|
|
|
|
|
|
|
|
|
#include "google/protobuf/io/zero_copy_stream_impl_lite.h" |
|
|
|
|
#include "google/protobuf/generated_message_tctable_decl.h" |
|
|
|
|
#include "google/protobuf/message_lite.h" |
|
|
|
|
#include "google/protobuf/parse_context.h" |
|
|
|
|
#include "google/protobuf/wire_format_lite.h" |
|
|
|
|
|
|
|
|
|
// Must be included last.
|
|
|
|
|
#include "google/protobuf/port_def.inc" |
|
|
|
@ -20,9 +20,9 @@ namespace google { |
|
|
|
|
namespace protobuf { |
|
|
|
|
namespace internal { |
|
|
|
|
|
|
|
|
|
const char* ImplicitWeakMessage::_InternalParse(const char* ptr, |
|
|
|
|
ParseContext* ctx) { |
|
|
|
|
return ctx->AppendString(ptr, data_); |
|
|
|
|
const char* ImplicitWeakMessage::ParseImpl(ImplicitWeakMessage* msg, |
|
|
|
|
const char* ptr, ParseContext* ctx) { |
|
|
|
|
return ctx->AppendString(ptr, msg->data_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
struct ImplicitWeakMessageDefaultType { |
|
|
|
@ -42,6 +42,25 @@ const ImplicitWeakMessage* ImplicitWeakMessage::default_instance() { |
|
|
|
|
&implicit_weak_message_default_instance); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const MessageLite::ClassData* ImplicitWeakMessage::GetClassData() const { |
|
|
|
|
struct Data { |
|
|
|
|
ClassData header; |
|
|
|
|
char name[1]; |
|
|
|
|
}; |
|
|
|
|
static const auto table = |
|
|
|
|
internal::CreateStubTcParseTable<ImplicitWeakMessage, ParseImpl>( |
|
|
|
|
&implicit_weak_message_default_instance.instance); |
|
|
|
|
static constexpr Data data = { |
|
|
|
|
{ |
|
|
|
|
&table.header, |
|
|
|
|
nullptr, // on_demand_register_arena_dtor
|
|
|
|
|
PROTOBUF_FIELD_OFFSET(ImplicitWeakMessage, cached_size_), |
|
|
|
|
true, |
|
|
|
|
}, |
|
|
|
|
""}; |
|
|
|
|
return &data.header; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} // namespace internal
|
|
|
|
|
} // namespace protobuf
|
|
|
|
|
} // namespace google
|
|
|
|
|