Classes | Namespaces | Macros | Functions | Variables
generated_message_util.cc File Reference
#include <google/protobuf/generated_message_util.h>
#include <limits>
#include <thread>
#include <vector>
#include <google/protobuf/io/coded_stream_inl.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/message_lite.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for generated_message_util.cc:

Go to the source code of this file.

Classes

class  google::protobuf.internal::AccessorHelper
 
struct  google::protobuf.internal::ArrayOutput
 
struct  google::protobuf.internal::OneOfFieldHelper< type >
 
struct  google::protobuf.internal::OneOfFieldHelper< FieldMetadata::kInlinedType >
 
struct  google::protobuf.internal::OutputHelper< O, type >
 
struct  google::protobuf.internal::OutputHelper< ArrayOutput, type >
 
struct  google::protobuf.internal::OutputHelper< io::CodedOutputStream, type >
 
struct  google::protobuf.internal::PackedFieldHelper< type >
 
struct  google::protobuf.internal::PackedFieldHelper< FieldMetadata::kInlinedType >
 
struct  google::protobuf.internal::PackedFieldHelper< WireFormatLite::TYPE_BYTES >
 
struct  google::protobuf.internal::PackedFieldHelper< WireFormatLite::TYPE_GROUP >
 
struct  google::protobuf.internal::PackedFieldHelper< WireFormatLite::TYPE_MESSAGE >
 
struct  google::protobuf.internal::PackedFieldHelper< WireFormatLite::TYPE_STRING >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< type >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< FieldMetadata::kInlinedType >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_BOOL >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_BYTES >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_DOUBLE >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_ENUM >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_FIXED32 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_FIXED64 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_FLOAT >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_INT32 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_INT64 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_SFIXED32 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_SFIXED64 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_SINT32 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_SINT64 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_STRING >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_UINT32 >
 
struct  google::protobuf.internal::PrimitiveTypeHelper< WireFormatLite::TYPE_UINT64 >
 
struct  google::protobuf.internal::RepeatedFieldHelper< type >
 
struct  google::protobuf.internal::RepeatedFieldHelper< FieldMetadata::kInlinedType >
 
struct  google::protobuf.internal::RepeatedFieldHelper< WireFormatLite::TYPE_BYTES >
 
struct  google::protobuf.internal::RepeatedFieldHelper< WireFormatLite::TYPE_GROUP >
 
struct  google::protobuf.internal::RepeatedFieldHelper< WireFormatLite::TYPE_MESSAGE >
 
struct  google::protobuf.internal::RepeatedFieldHelper< WireFormatLite::TYPE_STRING >
 
struct  google::protobuf.internal::SingularFieldHelper< type >
 
struct  google::protobuf.internal::SingularFieldHelper< FieldMetadata::kInlinedType >
 
struct  google::protobuf.internal::SingularFieldHelper< WireFormatLite::TYPE_BYTES >
 
struct  google::protobuf.internal::SingularFieldHelper< WireFormatLite::TYPE_GROUP >
 
struct  google::protobuf.internal::SingularFieldHelper< WireFormatLite::TYPE_MESSAGE >
 
struct  google::protobuf.internal::SingularFieldHelper< WireFormatLite::TYPE_STRING >
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define SERIALIZE_TABLE_OP(type, type_class)   ((type - 1) + static_cast<int>(type_class) * FieldMetadata::kNumTypes)
 
#define SERIALIZERS_FOR_TYPE(type)
 

Functions

void google.protobuf.internal::DestroyMessage (const void *message)
 
void google.protobuf.internal::DestroyString (const void *s)
 
MessageLite * google.protobuf.internal::DuplicateIfNonNullInternal (MessageLite *message)
 
void google.protobuf.internal::ExtensionSerializer (const uint8 *ptr, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
 
void google.protobuf.internal::GenericSwap (MessageLite *m1, MessageLite *m2)
 
template<typename T >
const Tgoogle.protobuf.internal::Get (const void *ptr)
 
MessageLite * google.protobuf.internal::GetOwnedMessageInternal (Arena *message_arena, MessageLite *submessage, Arena *submessage_arena)
 
void google.protobuf.internal::InitProtobufDefaults ()
 
static bool google.protobuf.internal::InitProtobufDefaultsImpl ()
 
void google.protobuf.internal::InitSCCImpl (SCCInfoBase *scc)
 
template<int type>
bool google.protobuf.internal::IsNull (const void *ptr)
 
template<>
bool google.protobuf.internal::IsNull< FieldMetadata::kInlinedType > (const void *ptr)
 
template<>
bool google.protobuf.internal::IsNull< WireFormatLite::TYPE_BYTES > (const void *ptr)
 
template<>
bool google.protobuf.internal::IsNull< WireFormatLite::TYPE_GROUP > (const void *ptr)
 
template<>
bool google.protobuf.internal::IsNull< WireFormatLite::TYPE_MESSAGE > (const void *ptr)
 
template<>
bool google.protobuf.internal::IsNull< WireFormatLite::TYPE_STRING > (const void *ptr)
 
template<typename O >
void google.protobuf.internal::SerializeGroupTo (const MessageLite *msg, const void *table_ptr, O *output)
 
PROTOBUF_EXPORT void google.protobuf.internal::SerializeInternal (const uint8 *base, const FieldMetadata *table, int32 num_fields, io::CodedOutputStream *output)
 
uint8 * google.protobuf.internal::SerializeInternalToArray (const uint8 *base, const FieldMetadata *table, int32 num_fields, bool is_deterministic, uint8 *buffer)
 
void google.protobuf.internal::SerializeMessageDispatch (const MessageLite &msg, const FieldMetadata *field_table, int num_fields, int32 cached_size, ArrayOutput *output)
 
void google.protobuf.internal::SerializeMessageDispatch (const MessageLite &msg, const FieldMetadata *field_table, int num_fields, int32 cached_size, io::CodedOutputStream *output)
 
void google.protobuf.internal::SerializeMessageNoTable (const MessageLite *msg, ArrayOutput *output)
 
void google.protobuf.internal::SerializeMessageNoTable (const MessageLite *msg, io::CodedOutputStream *output)
 
template<typename O >
void google.protobuf.internal::SerializeMessageTo (const MessageLite *msg, const void *table_ptr, O *output)
 
void google.protobuf.internal::SerializeNotImplemented (int field)
 
template<int type, typename O >
void google.protobuf.internal::SerializeTo (const void *ptr, O *output)
 
size_t google.protobuf.internal::StringSpaceUsedExcludingSelfLong (const std::string &str)
 
void google.protobuf.internal::UnknownFieldSerializerLite (const uint8 *ptr, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
 
template<typename O >
void google.protobuf.internal::WriteLengthTo (uint32 length, O *output)
 
template<typename O >
void google.protobuf.internal::WriteTagTo (uint32 tag, O *output)
 

Variables

ExplicitlyConstructed< std::stringgoogle.protobuf.internal::fixed_address_empty_string
 

Macro Definition Documentation

◆ SERIALIZE_TABLE_OP

#define SERIALIZE_TABLE_OP (   type,
  type_class 
)    ((type - 1) + static_cast<int>(type_class) * FieldMetadata::kNumTypes)

Definition at line 573 of file generated_message_util.cc.

◆ SERIALIZERS_FOR_TYPE

#define SERIALIZERS_FOR_TYPE (   type)
Value:
case SERIALIZE_TABLE_OP(type, FieldMetadata::kPresence): \
if (!IsPresent(base, field_metadata.has_offset)) continue; \
SingularFieldHelper<type>::Serialize(ptr, field_metadata, output); \
break; \
case SERIALIZE_TABLE_OP(type, FieldMetadata::kNoPresence): \
if (IsNull<type>(ptr)) continue; \
SingularFieldHelper<type>::Serialize(ptr, field_metadata, output); \
break; \
case SERIALIZE_TABLE_OP(type, FieldMetadata::kRepeated): \
RepeatedFieldHelper<type>::Serialize(ptr, field_metadata, output); \
break; \
case SERIALIZE_TABLE_OP(type, FieldMetadata::kPacked): \
PackedFieldHelper<type>::Serialize(ptr, field_metadata, output); \
break; \
case SERIALIZE_TABLE_OP(type, FieldMetadata::kOneOf): \
if (!IsOneofPresent(base, field_metadata.has_offset, field_metadata.tag)) \
continue; \
OneOfFieldHelper<type>::Serialize(ptr, field_metadata, output); \
break

Definition at line 613 of file generated_message_util.cc.

google::protobuf.internal::IsNull
bool IsNull(const void *ptr)
Definition: generated_message_util.cc:582
base
Definition: logging.cc:2162
google::protobuf.internal::IsPresent
bool IsPresent(const void *base, uint32 hasbit)
Definition: generated_message_util.h:121
if
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END if(!upb_strtable_init(&intern->table, UPB_CTYPE_UINT64))
Definition: php/ext/google/protobuf/map.c:232
google::protobuf.internal::IsOneofPresent
bool IsOneofPresent(const void *base, uint32 offset, uint32 tag)
Definition: generated_message_util.h:126
type
GLenum type
Definition: glcorearb.h:2695
output
const upb_json_parsermethod const upb_symtab upb_sink * output
Definition: ruby/ext/google/protobuf_c/upb.h:10503
SERIALIZE_TABLE_OP
#define SERIALIZE_TABLE_OP(type, type_class)
Definition: generated_message_util.cc:573


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02