TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::internal::WireFormat Class Reference

#include <wire_format.h>

Public Types

enum  Operation { PARSE, SERIALIZE }
 

Static Public Member Functions

static WireFormatLite::WireType WireTypeForField (const FieldDescriptor *field)
 
static WireFormatLite::WireType WireTypeForFieldType (FieldDescriptor::Type type)
 
static int TagSize (int field_number, FieldDescriptor::Type type)
 
static bool ParseAndMergePartial (io::CodedInputStream *input, Message *message)
 
static void SerializeWithCachedSizes (const Message &message, int size, io::CodedOutputStream *output)
 
static int ByteSize (const Message &message)
 
static bool SkipField (io::CodedInputStream *input, uint32 tag, UnknownFieldSet *unknown_fields)
 
static bool SkipMessage (io::CodedInputStream *input, UnknownFieldSet *unknown_fields)
 
static void SerializeUnknownFields (const UnknownFieldSet &unknown_fields, io::CodedOutputStream *output)
 
static uint8SerializeUnknownFieldsToArray (const UnknownFieldSet &unknown_fields, uint8 *target)
 
static void SerializeUnknownMessageSetItems (const UnknownFieldSet &unknown_fields, io::CodedOutputStream *output)
 
static uint8SerializeUnknownMessageSetItemsToArray (const UnknownFieldSet &unknown_fields, uint8 *target)
 
static int ComputeUnknownFieldsSize (const UnknownFieldSet &unknown_fields)
 
static int ComputeUnknownMessageSetItemsSize (const UnknownFieldSet &unknown_fields)
 
static uint32 MakeTag (const FieldDescriptor *field)
 
static bool ParseAndMergeField (uint32 tag, const FieldDescriptor *field, Message *message, io::CodedInputStream *input)
 
static void SerializeFieldWithCachedSizes (const FieldDescriptor *field, const Message &message, io::CodedOutputStream *output)
 
static int FieldByteSize (const FieldDescriptor *field, const Message &message)
 
static bool ParseAndMergeMessageSetItem (io::CodedInputStream *input, Message *message)
 
static void SerializeMessageSetItemWithCachedSizes (const FieldDescriptor *field, const Message &message, io::CodedOutputStream *output)
 
static int MessageSetItemByteSize (const FieldDescriptor *field, const Message &message)
 
static int FieldDataOnlyByteSize (const FieldDescriptor *field, const Message &message)
 
static void VerifyUTF8String (const char *data, int size, Operation op)
 
static void VerifyUTF8StringNamedField (const char *data, int size, Operation op, const char *field_name)
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (WireFormat)
 

Static Private Member Functions

static void VerifyUTF8StringFallback (const char *data, int size, Operation op, const char *field_name)
 
static bool SkipMessageSetField (io::CodedInputStream *input, uint32 field_number, UnknownFieldSet *unknown_fields)
 
static bool ParseAndMergeMessageSetField (uint32 field_number, const FieldDescriptor *field, Message *message, io::CodedInputStream *input)
 

Member Enumeration Documentation

Enumerator
PARSE 
SERIALIZE 
225  {
226  PARSE,
227  SERIALIZE,
228  };

Member Function Documentation

static int google::protobuf::internal::WireFormat::ByteSize ( const Message message)
static
static int google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize ( const UnknownFieldSet unknown_fields)
static
static int google::protobuf::internal::WireFormat::ComputeUnknownMessageSetItemsSize ( const UnknownFieldSet unknown_fields)
static
static int google::protobuf::internal::WireFormat::FieldByteSize ( const FieldDescriptor field,
const Message message 
)
static
static int google::protobuf::internal::WireFormat::FieldDataOnlyByteSize ( const FieldDescriptor field,
const Message message 
)
static
google::protobuf::internal::WireFormat::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( WireFormat  )
private
uint32 google::protobuf::internal::WireFormat::MakeTag ( const FieldDescriptor field)
inlinestatic
301  {
302  return WireFormatLite::MakeTag(field->number(), WireTypeForField(field));
303 }
static WireFormatLite::WireType WireTypeForField(const FieldDescriptor *field)
Definition: wire_format.h:283
static uint32 MakeTag(int field_number, WireType type)
Definition: wire_format_lite.h:567

+ Here is the call graph for this function:

static int google::protobuf::internal::WireFormat::MessageSetItemByteSize ( const FieldDescriptor field,
const Message message 
)
static
static bool google::protobuf::internal::WireFormat::ParseAndMergeField ( uint32  tag,
const FieldDescriptor field,
Message message,
io::CodedInputStream input 
)
static
static bool google::protobuf::internal::WireFormat::ParseAndMergeMessageSetField ( uint32  field_number,
const FieldDescriptor field,
Message message,
io::CodedInputStream input 
)
staticprivate
static bool google::protobuf::internal::WireFormat::ParseAndMergeMessageSetItem ( io::CodedInputStream input,
Message message 
)
static
static bool google::protobuf::internal::WireFormat::ParseAndMergePartial ( io::CodedInputStream input,
Message message 
)
static
static void google::protobuf::internal::WireFormat::SerializeFieldWithCachedSizes ( const FieldDescriptor field,
const Message message,
io::CodedOutputStream output 
)
static
static void google::protobuf::internal::WireFormat::SerializeMessageSetItemWithCachedSizes ( const FieldDescriptor field,
const Message message,
io::CodedOutputStream output 
)
static
static void google::protobuf::internal::WireFormat::SerializeUnknownFields ( const UnknownFieldSet unknown_fields,
io::CodedOutputStream output 
)
static
static uint8* google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray ( const UnknownFieldSet unknown_fields,
uint8 target 
)
static
static void google::protobuf::internal::WireFormat::SerializeUnknownMessageSetItems ( const UnknownFieldSet unknown_fields,
io::CodedOutputStream output 
)
static
static uint8* google::protobuf::internal::WireFormat::SerializeUnknownMessageSetItemsToArray ( const UnknownFieldSet unknown_fields,
uint8 target 
)
static
static void google::protobuf::internal::WireFormat::SerializeWithCachedSizes ( const Message message,
int  size,
io::CodedOutputStream output 
)
static
static bool google::protobuf::internal::WireFormat::SkipField ( io::CodedInputStream input,
uint32  tag,
UnknownFieldSet unknown_fields 
)
static
static bool google::protobuf::internal::WireFormat::SkipMessage ( io::CodedInputStream input,
UnknownFieldSet unknown_fields 
)
static
static bool google::protobuf::internal::WireFormat::SkipMessageSetField ( io::CodedInputStream input,
uint32  field_number,
UnknownFieldSet unknown_fields 
)
staticprivate
int google::protobuf::internal::WireFormat::TagSize ( int  field_number,
FieldDescriptor::Type  type 
)
inlinestatic
305  {
306  // Some compilers don't like enum -> enum casts, so we implicit_cast to
307  // int first.
309  static_cast<WireFormatLite::FieldType>(
310  implicit_cast<int>(type)));
311 }
static int TagSize(int field_number, WireFormatLite::FieldType type)
Definition: wire_format_lite.h:579
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

void google::protobuf::internal::WireFormat::VerifyUTF8String ( const char *  data,
int  size,
WireFormat::Operation  op 
)
inlinestatic
314  {
315 #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
317 #else
318  // Avoid the compiler warning about unsued variables.
319  (void)data; (void)size; (void)op;
320 #endif
321 }
arena_t NULL
Definition: jemalloc_internal.h:624
static void VerifyUTF8StringFallback(const char *data, int size, Operation op, const char *field_name)

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormat::VerifyUTF8StringFallback ( const char *  data,
int  size,
Operation  op,
const char *  field_name 
)
staticprivate

+ Here is the caller graph for this function:

void google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField ( const char *  data,
int  size,
WireFormat::Operation  op,
const char *  field_name 
)
inlinestatic
325  {
326 #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
327  WireFormat::VerifyUTF8StringFallback(data, size, op, field_name);
328 #endif
329 }
static void VerifyUTF8StringFallback(const char *data, int size, Operation op, const char *field_name)

+ Here is the call graph for this function:

WireFormatLite::WireType google::protobuf::internal::WireFormat::WireTypeForField ( const FieldDescriptor field)
inlinestatic
284  {
285  if (field->options().packed()) {
287  } else {
288  return WireTypeForFieldType(field->type());
289  }
290 }
static WireFormatLite::WireType WireTypeForFieldType(FieldDescriptor::Type type)
Definition: wire_format.h:292

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

WireFormatLite::WireType google::protobuf::internal::WireFormat::WireTypeForFieldType ( FieldDescriptor::Type  type)
inlinestatic
293  {
294  // Some compilers don't like enum -> enum casts, so we implicit_cast to
295  // int first.
297  static_cast<WireFormatLite::FieldType>(
298  implicit_cast<int>(type)));
299 }
static WireFormatLite::WireType WireTypeForFieldType(WireFormatLite::FieldType type)
Definition: wire_format_lite.h:137

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: