webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions
generated_message_reflection.h File Reference
#include <string>
#include <vector>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/unknown_field_set.h>

Go to the source code of this file.

Classes

class  google::protobuf.internal::GeneratedMessageReflection
 

Namespaces

 google
 
 google::upb
 
 google::upb::google_opensource
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TYPE, FIELD)
 
#define PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ONEOF, FIELD)
 

Functions

template<typename To , typename From >
To google.protobuf.internal::dynamic_cast_if_available (From from)
 
template<typename T >
Tgoogle.protobuf.internal::DynamicCastToGenerated (const Message *from)
 
template<typename T >
Tgoogle.protobuf.internal::DynamicCastToGenerated (Message *from)
 

Macro Definition Documentation

◆ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET

#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET (   TYPE,
  FIELD 
)
Value:
static_cast<int>( \
reinterpret_cast<const char*>( \
&reinterpret_cast<const TYPE*>(16)->FIELD) - \
reinterpret_cast<const char*>(16))
#define TYPE(u, l)
Definition: upb.c:9296

◆ PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET

#define PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET (   ONEOF,
  FIELD 
)
Value:
static_cast<int>( \
reinterpret_cast<const char*>(&(ONEOF->FIELD)) \
- reinterpret_cast<const char*>(ONEOF))