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

#include <wire_format_lite.h>

Public Types

enum  WireType {
  WIRETYPE_VARINT = 0, WIRETYPE_FIXED64 = 1, WIRETYPE_LENGTH_DELIMITED = 2, WIRETYPE_START_GROUP = 3,
  WIRETYPE_END_GROUP = 4, WIRETYPE_FIXED32 = 5
}
 
enum  FieldType {
  TYPE_DOUBLE = 1, TYPE_FLOAT = 2, TYPE_INT64 = 3, TYPE_UINT64 = 4,
  TYPE_INT32 = 5, TYPE_FIXED64 = 6, TYPE_FIXED32 = 7, TYPE_BOOL = 8,
  TYPE_STRING = 9, TYPE_GROUP = 10, TYPE_MESSAGE = 11, TYPE_BYTES = 12,
  TYPE_UINT32 = 13, TYPE_ENUM = 14, TYPE_SFIXED32 = 15, TYPE_SFIXED64 = 16,
  TYPE_SINT32 = 17, TYPE_SINT64 = 18, MAX_FIELD_TYPE = 18
}
 
enum  CppType {
  CPPTYPE_INT32 = 1, CPPTYPE_INT64 = 2, CPPTYPE_UINT32 = 3, CPPTYPE_UINT64 = 4,
  CPPTYPE_DOUBLE = 5, CPPTYPE_FLOAT = 6, CPPTYPE_BOOL = 7, CPPTYPE_ENUM = 8,
  CPPTYPE_STRING = 9, CPPTYPE_MESSAGE = 10, MAX_CPPTYPE = 10
}
 

Public Member Functions

template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadRepeatedPrimitive (int, uint32 tag, io::CodedInputStream *input, RepeatedField< CType > *values)
 
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadRepeatedPrimitiveNoInline (int tag_size, uint32 tag, io::CodedInputStream *input, RepeatedField< CType > *value)
 
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadPackedPrimitive (io::CodedInputStream *input, RepeatedField< CType > *values)
 
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadPackedPrimitiveNoInline (io::CodedInputStream *input, RepeatedField< CType > *values)
 
template<typename MessageType_WorkAroundCppLookupDefect >
bool ReadGroupNoVirtual (int field_number, io::CodedInputStream *input, MessageType_WorkAroundCppLookupDefect *value)
 
template<typename MessageType_WorkAroundCppLookupDefect >
bool ReadMessageNoVirtual (io::CodedInputStream *input, MessageType_WorkAroundCppLookupDefect *value)
 
template<typename MessageType_WorkAroundCppLookupDefect >
void WriteGroupNoVirtual (int field_number, const MessageType_WorkAroundCppLookupDefect &value, io::CodedOutputStream *output)
 
template<typename MessageType_WorkAroundCppLookupDefect >
void WriteMessageNoVirtual (int field_number, const MessageType_WorkAroundCppLookupDefect &value, io::CodedOutputStream *output)
 
template<typename MessageType_WorkAroundCppLookupDefect >
uint8WriteGroupNoVirtualToArray (int field_number, const MessageType_WorkAroundCppLookupDefect &value, uint8 *target)
 
template<typename MessageType_WorkAroundCppLookupDefect >
uint8WriteMessageNoVirtualToArray (int field_number, const MessageType_WorkAroundCppLookupDefect &value, uint8 *target)
 
template<typename MessageType_WorkAroundCppLookupDefect >
int GroupSizeNoVirtual (const MessageType_WorkAroundCppLookupDefect &value)
 
template<typename MessageType_WorkAroundCppLookupDefect >
int MessageSizeNoVirtual (const MessageType_WorkAroundCppLookupDefect &value)
 

Static Public Member Functions

static CppType FieldTypeToCppType (FieldType type)
 
static WireFormatLite::WireType WireTypeForFieldType (WireFormatLite::FieldType type)
 
static uint32 MakeTag (int field_number, WireType type)
 
static WireType GetTagWireType (uint32 tag)
 
static int GetTagFieldNumber (uint32 tag)
 
static int TagSize (int field_number, WireFormatLite::FieldType type)
 
static bool SkipField (io::CodedInputStream *input, uint32 tag)
 
static bool SkipField (io::CodedInputStream *input, uint32 tag, io::CodedOutputStream *output)
 
static bool SkipMessage (io::CodedInputStream *input)
 
static bool SkipMessage (io::CodedInputStream *input, io::CodedOutputStream *output)
 
static uint32 EncodeFloat (float value)
 
static float DecodeFloat (uint32 value)
 
static uint64 EncodeDouble (double value)
 
static double DecodeDouble (uint64 value)
 
static uint32 ZigZagEncode32 (int32 n)
 
static int32 ZigZagDecode32 (uint32 n)
 
static uint64 ZigZagEncode64 (int64 n)
 
static int64 ZigZagDecode64 (uint64 n)
 
template<typename CType , enum FieldType DeclaredType>
static bool ReadPrimitive (input, CType *value) INL
 
template<typename CType , enum FieldType DeclaredType>
static bool ReadRepeatedPrimitive (int tag_size, uint32 tag, input, RepeatedField< CType > *value) INL
 
template<typename CType , enum FieldType DeclaredType>
static bool ReadRepeatedPrimitiveNoInline (int tag_size, uint32 tag, input, RepeatedField< CType > *value)
 
template<typename CType , enum FieldType DeclaredType>
static const uint8ReadPrimitiveFromArray (const uint8 *buffer, CType *value) INL
 
template<typename CType , enum FieldType DeclaredType>
static bool ReadPackedPrimitive (input, RepeatedField< CType > *value) INL
 
template<typename CType , enum FieldType DeclaredType>
static bool ReadPackedPrimitiveNoInline (input, RepeatedField< CType > *value)
 
static bool ReadPackedEnumNoInline (input, bool(*is_valid)(int), RepeatedField< int > *value)
 
static bool ReadString (input, string *value)
 
static bool ReadBytes (input, string *value)
 
static bool ReadGroup (field_number, input, MessageLite *value)
 
static bool ReadMessage (input, MessageLite *value)
 
template<typename MessageType >
static bool ReadGroupNoVirtual (field_number, input, MessageType *value)
 
template<typename MessageType >
static bool ReadMessageNoVirtual (input, MessageType *value)
 
static void WriteTag (field_number, WireType type, output) INL
 
static void WriteInt32NoTag (int32 value, output) INL
 
static void WriteInt64NoTag (int64 value, output) INL
 
static void WriteUInt32NoTag (uint32 value, output) INL
 
static void WriteUInt64NoTag (uint64 value, output) INL
 
static void WriteSInt32NoTag (int32 value, output) INL
 
static void WriteSInt64NoTag (int64 value, output) INL
 
static void WriteFixed32NoTag (uint32 value, output) INL
 
static void WriteFixed64NoTag (uint64 value, output) INL
 
static void WriteSFixed32NoTag (int32 value, output) INL
 
static void WriteSFixed64NoTag (int64 value, output) INL
 
static void WriteFloatNoTag (float value, output) INL
 
static void WriteDoubleNoTag (double value, output) INL
 
static void WriteBoolNoTag (bool value, output) INL
 
static void WriteEnumNoTag (int value, output) INL
 
static void WriteInt32 (field_number, int32 value, output)
 
static void WriteInt64 (field_number, int64 value, output)
 
static void WriteUInt32 (field_number, uint32 value, output)
 
static void WriteUInt64 (field_number, uint64 value, output)
 
static void WriteSInt32 (field_number, int32 value, output)
 
static void WriteSInt64 (field_number, int64 value, output)
 
static void WriteFixed32 (field_number, uint32 value, output)
 
static void WriteFixed64 (field_number, uint64 value, output)
 
static void WriteSFixed32 (field_number, int32 value, output)
 
static void WriteSFixed64 (field_number, int64 value, output)
 
static void WriteFloat (field_number, float value, output)
 
static void WriteDouble (field_number, double value, output)
 
static void WriteBool (field_number, bool value, output)
 
static void WriteEnum (field_number, int value, output)
 
static void WriteString (field_number, const string &value, output)
 
static void WriteBytes (field_number, const string &value, output)
 
static void WriteStringMaybeAliased (field_number, const string &value, output)
 
static void WriteBytesMaybeAliased (field_number, const string &value, output)
 
static void WriteGroup (field_number, const MessageLite &value, output)
 
static void WriteMessage (field_number, const MessageLite &value, output)
 
static void WriteGroupMaybeToArray (field_number, const MessageLite &value, output)
 
static void WriteMessageMaybeToArray (field_number, const MessageLite &value, output)
 
template<typename MessageType >
static void WriteGroupNoVirtual (field_number, const MessageType &value, output)
 
template<typename MessageType >
static void WriteMessageNoVirtual (field_number, const MessageType &value, output)
 
static uint8WriteTagToArray (field_number, WireType type, output) INL
 
static uint8WriteInt32NoTagToArray (int32 value, output) INL
 
static uint8WriteInt64NoTagToArray (int64 value, output) INL
 
static uint8WriteUInt32NoTagToArray (uint32 value, output) INL
 
static uint8WriteUInt64NoTagToArray (uint64 value, output) INL
 
static uint8WriteSInt32NoTagToArray (int32 value, output) INL
 
static uint8WriteSInt64NoTagToArray (int64 value, output) INL
 
static uint8WriteFixed32NoTagToArray (uint32 value, output) INL
 
static uint8WriteFixed64NoTagToArray (uint64 value, output) INL
 
static uint8WriteSFixed32NoTagToArray (int32 value, output) INL
 
static uint8WriteSFixed64NoTagToArray (int64 value, output) INL
 
static uint8WriteFloatNoTagToArray (float value, output) INL
 
static uint8WriteDoubleNoTagToArray (double value, output) INL
 
static uint8WriteBoolNoTagToArray (bool value, output) INL
 
static uint8WriteEnumNoTagToArray (int value, output) INL
 
static uint8WriteInt32ToArray (field_number, int32 value, output) INL
 
static uint8WriteInt64ToArray (field_number, int64 value, output) INL
 
static uint8WriteUInt32ToArray (field_number, uint32 value, output) INL
 
static uint8WriteUInt64ToArray (field_number, uint64 value, output) INL
 
static uint8WriteSInt32ToArray (field_number, int32 value, output) INL
 
static uint8WriteSInt64ToArray (field_number, int64 value, output) INL
 
static uint8WriteFixed32ToArray (field_number, uint32 value, output) INL
 
static uint8WriteFixed64ToArray (field_number, uint64 value, output) INL
 
static uint8WriteSFixed32ToArray (field_number, int32 value, output) INL
 
static uint8WriteSFixed64ToArray (field_number, int64 value, output) INL
 
static uint8WriteFloatToArray (field_number, float value, output) INL
 
static uint8WriteDoubleToArray (field_number, double value, output) INL
 
static uint8WriteBoolToArray (field_number, bool value, output) INL
 
static uint8WriteEnumToArray (field_number, int value, output) INL
 
static uint8WriteStringToArray (field_number, const string &value, output) INL
 
static uint8WriteBytesToArray (field_number, const string &value, output) INL
 
static uint8WriteGroupToArray (field_number, const MessageLite &value, output) INL
 
static uint8WriteMessageToArray (field_number, const MessageLite &value, output) INL
 
template<typename MessageType >
static uint8WriteGroupNoVirtualToArray (field_number, const MessageType &value, output) INL
 
template<typename MessageType >
static uint8WriteMessageNoVirtualToArray (field_number, const MessageType &value, output) INL
 
static int Int32Size (int32 value)
 
static int Int64Size (int64 value)
 
static int UInt32Size (uint32 value)
 
static int UInt64Size (uint64 value)
 
static int SInt32Size (int32 value)
 
static int SInt64Size (int64 value)
 
static int EnumSize (int value)
 
static int StringSize (const string &value)
 
static int BytesSize (const string &value)
 
static int GroupSize (const MessageLite &value)
 
static int MessageSize (const MessageLite &value)
 
template<typename MessageType >
static int GroupSizeNoVirtual (const MessageType &value)
 
template<typename MessageType >
static int MessageSizeNoVirtual (const MessageType &value)
 
static int LengthDelimitedSize (int length)
 

Static Public Attributes

static const int kTagTypeBits = 3
 
static const uint32 kTagTypeMask = (1 << kTagTypeBits) - 1
 
static const int kMessageSetItemNumber = 1
 
static const int kMessageSetTypeIdNumber = 2
 
static const int kMessageSetMessageNumber = 3
 
static const int kMessageSetItemStartTag
 
static const int kMessageSetItemEndTag
 
static const int kMessageSetTypeIdTag
 
static const int kMessageSetMessageTag
 
static const int kMessageSetItemTagsSize
 
static const int kFixed32Size = 4
 
static const int kFixed64Size = 8
 
static const int kSFixed32Size = 4
 
static const int kSFixed64Size = 8
 
static const int kFloatSize = 4
 
static const int kDoubleSize = 8
 
static const int kBoolSize = 1
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (WireFormatLite)
 

Static Private Member Functions

template<typename CType , enum FieldType DeclaredType>
static bool ReadRepeatedFixedSizePrimitive (int tag_size, uint32 tag, google::protobuf::io::CodedInputStream *input, RepeatedField< CType > *value) GOOGLE_ATTRIBUTE_ALWAYS_INLINE
 
template<typename CType , enum FieldType DeclaredType>
static bool ReadPackedFixedSizePrimitive (google::protobuf::io::CodedInputStream *input, RepeatedField< CType > *value) GOOGLE_ATTRIBUTE_ALWAYS_INLINE
 

Static Private Attributes

static const CppType kFieldTypeToCppTypeMap []
 
static const
WireFormatLite::WireType 
kWireTypeForFieldType []
 

Member Enumeration Documentation

Enumerator
CPPTYPE_INT32 
CPPTYPE_INT64 
CPPTYPE_UINT32 
CPPTYPE_UINT64 
CPPTYPE_DOUBLE 
CPPTYPE_FLOAT 
CPPTYPE_BOOL 
CPPTYPE_ENUM 
CPPTYPE_STRING 
CPPTYPE_MESSAGE 
MAX_CPPTYPE 
119  {
120  CPPTYPE_INT32 = 1,
121  CPPTYPE_INT64 = 2,
122  CPPTYPE_UINT32 = 3,
123  CPPTYPE_UINT64 = 4,
124  CPPTYPE_DOUBLE = 5,
125  CPPTYPE_FLOAT = 6,
126  CPPTYPE_BOOL = 7,
127  CPPTYPE_ENUM = 8,
128  CPPTYPE_STRING = 9,
129  CPPTYPE_MESSAGE = 10,
130  MAX_CPPTYPE = 10,
131  };
Enumerator
TYPE_DOUBLE 
TYPE_FLOAT 
TYPE_INT64 
TYPE_UINT64 
TYPE_INT32 
TYPE_FIXED64 
TYPE_FIXED32 
TYPE_BOOL 
TYPE_STRING 
TYPE_GROUP 
TYPE_MESSAGE 
TYPE_BYTES 
TYPE_UINT32 
TYPE_ENUM 
TYPE_SFIXED32 
TYPE_SFIXED64 
TYPE_SINT32 
TYPE_SINT64 
MAX_FIELD_TYPE 
96  {
97  TYPE_DOUBLE = 1,
98  TYPE_FLOAT = 2,
99  TYPE_INT64 = 3,
100  TYPE_UINT64 = 4,
101  TYPE_INT32 = 5,
102  TYPE_FIXED64 = 6,
103  TYPE_FIXED32 = 7,
104  TYPE_BOOL = 8,
105  TYPE_STRING = 9,
106  TYPE_GROUP = 10,
107  TYPE_MESSAGE = 11,
108  TYPE_BYTES = 12,
109  TYPE_UINT32 = 13,
110  TYPE_ENUM = 14,
111  TYPE_SFIXED32 = 15,
112  TYPE_SFIXED64 = 16,
113  TYPE_SINT32 = 17,
114  TYPE_SINT64 = 18,
115  MAX_FIELD_TYPE = 18,
116  };
Enumerator
WIRETYPE_VARINT 
WIRETYPE_FIXED64 
WIRETYPE_LENGTH_DELIMITED 
WIRETYPE_START_GROUP 
WIRETYPE_END_GROUP 
WIRETYPE_FIXED32 

Member Function Documentation

int google::protobuf::internal::WireFormatLite::BytesSize ( const string &  value)
inlinestatic
825  {
827  value.size();
828 }
const FieldDescriptor value
Definition: descriptor.h:1522
static int VarintSize32(uint32 value)
Definition: coded_stream.h:1087
double google::protobuf::internal::WireFormatLite::DecodeDouble ( uint64  value)
inlinestatic
609  {
610  union {double f; uint64 i;};
611  i = value;
612  return f;
613 }
uint64_t uint64
Definition: Define.h:149
const FieldDescriptor value
Definition: descriptor.h:1522
float google::protobuf::internal::WireFormatLite::DecodeFloat ( uint32  value)
inlinestatic
597  {
598  union {float f; uint32 i;};
599  i = value;
600  return f;
601 }
uint32_t uint32
Definition: Define.h:150
const FieldDescriptor value
Definition: descriptor.h:1522
uint64 google::protobuf::internal::WireFormatLite::EncodeDouble ( double  value)
inlinestatic
603  {
604  union {double f; uint64 i;};
605  f = value;
606  return i;
607 }
uint64_t uint64
Definition: Define.h:149
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function:

uint32 google::protobuf::internal::WireFormatLite::EncodeFloat ( float  value)
inlinestatic
591  {
592  union {float f; uint32 i;};
593  f = value;
594  return i;
595 }
uint32_t uint32
Definition: Define.h:150
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function:

int google::protobuf::internal::WireFormatLite::EnumSize ( int  value)
inlinestatic
817  {
819 }
static int VarintSize32SignExtended(int32 value)
Definition: coded_stream.h:1095
const FieldDescriptor value
Definition: descriptor.h:1522
WireFormatLite::CppType google::protobuf::internal::WireFormatLite::FieldTypeToCppType ( FieldType  type)
inlinestatic
563  {
564  return kFieldTypeToCppTypeMap[type];
565 }
static const CppType kFieldTypeToCppTypeMap[]
Definition: wire_format_lite.h:514
int google::protobuf::internal::WireFormatLite::GetTagFieldNumber ( uint32  tag)
inlinestatic
575  {
576  return static_cast<int>(tag >> kTagTypeBits);
577 }
static const int kTagTypeBits
Definition: wire_format_lite.h:143
WireFormatLite::WireType google::protobuf::internal::WireFormatLite::GetTagWireType ( uint32  tag)
inlinestatic
571  {
572  return static_cast<WireType>(tag & kTagTypeMask);
573 }
static const uint32 kTagTypeMask
Definition: wire_format_lite.h:145
WireType
Definition: wire_format_lite.h:86
google::protobuf::internal::WireFormatLite::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( WireFormatLite  )
private
int google::protobuf::internal::WireFormatLite::GroupSize ( const MessageLite value)
inlinestatic
831  {
832  return value.ByteSize();
833 }
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename MessageType >
static int google::protobuf::internal::WireFormatLite::GroupSizeNoVirtual ( const MessageType &  value)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
int google::protobuf::internal::WireFormatLite::GroupSizeNoVirtual ( const MessageType_WorkAroundCppLookupDefect &  value)
inline
842  {
843  return value.MessageType_WorkAroundCppLookupDefect::ByteSize();
844 }
const FieldDescriptor value
Definition: descriptor.h:1522
int google::protobuf::internal::WireFormatLite::Int32Size ( int32  value)
inlinestatic
799  {
801 }
static int VarintSize32SignExtended(int32 value)
Definition: coded_stream.h:1095
const FieldDescriptor value
Definition: descriptor.h:1522
int google::protobuf::internal::WireFormatLite::Int64Size ( int64  value)
inlinestatic
802  {
803  return io::CodedOutputStream::VarintSize64(static_cast<uint64>(value));
804 }
static int VarintSize64(uint64 value)
const FieldDescriptor value
Definition: descriptor.h:1522
int google::protobuf::internal::WireFormatLite::LengthDelimitedSize ( int  length)
inlinestatic
852  {
854 }
float length(float v)
Definition: vectorMath.h:208
static int VarintSize32(uint32 value)
Definition: coded_stream.h:1087
uint32 google::protobuf::internal::WireFormatLite::MakeTag ( int  field_number,
WireType  type 
)
inlinestatic
567  {
569 }
#define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE)
Definition: wire_format_lite.h:186
#define field_number
Definition: wire_format_lite.h:244

+ Here is the caller graph for this function:

int google::protobuf::internal::WireFormatLite::MessageSize ( const MessageLite value)
inlinestatic
834  {
835  return LengthDelimitedSize(value.ByteSize());
836 }
static int LengthDelimitedSize(int length)
Definition: wire_format_lite_inl.h:852
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename MessageType >
static int google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual ( const MessageType &  value)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
int google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual ( const MessageType_WorkAroundCppLookupDefect &  value)
inline
847  {
848  return LengthDelimitedSize(
849  value.MessageType_WorkAroundCppLookupDefect::ByteSize());
850 }
static int LengthDelimitedSize(int length)
Definition: wire_format_lite_inl.h:852
const FieldDescriptor value
Definition: descriptor.h:1522
static bool google::protobuf::internal::WireFormatLite::ReadBytes ( input  ,
string *  value 
)
static
bool google::protobuf::internal::WireFormatLite::ReadGroup ( field_number  ,
input  ,
MessageLite value 
)
inlinestatic
431  {
432  if (!input->IncrementRecursionDepth()) return false;
433  if (!value->MergePartialFromCodedStream(input)) return false;
434  input->DecrementRecursionDepth();
435  // Make sure the last thing read was an end tag for this group.
436  if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) {
437  return false;
438  }
439  return true;
440 }
#define input
Definition: wire_format_lite.h:242
static uint32 MakeTag(int field_number, WireType type)
Definition: wire_format_lite.h:567
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

template<typename MessageType >
static bool google::protobuf::internal::WireFormatLite::ReadGroupNoVirtual ( field_number  ,
input  ,
MessageType *  value 
)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
bool google::protobuf::internal::WireFormatLite::ReadGroupNoVirtual ( int  field_number,
io::CodedInputStream input,
MessageType_WorkAroundCppLookupDefect *  value 
)
inline
469  {
470  if (!input->IncrementRecursionDepth()) return false;
471  if (!value->
472  MessageType_WorkAroundCppLookupDefect::MergePartialFromCodedStream(input))
473  return false;
474  input->DecrementRecursionDepth();
475  // Make sure the last thing read was an end tag for this group.
476  if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) {
477  return false;
478  }
479  return true;
480 }
#define input
Definition: wire_format_lite.h:242
static uint32 MakeTag(int field_number, WireType type)
Definition: wire_format_lite.h:567
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

bool google::protobuf::internal::WireFormatLite::ReadMessage ( input  ,
MessageLite value 
)
inlinestatic
442  {
443  uint32 length;
444  if (!input->ReadVarint32(&length)) return false;
445  if (!input->IncrementRecursionDepth()) return false;
446  io::CodedInputStream::Limit limit = input->PushLimit(length);
447  if (!value->MergePartialFromCodedStream(input)) return false;
448  // Make sure that parsing stopped when the limit was hit, not at an endgroup
449  // tag.
450  if (!input->ConsumedEntireMessage()) return false;
451  input->PopLimit(limit);
452  input->DecrementRecursionDepth();
453  return true;
454 }
int Limit
Definition: coded_stream.h:307
#define input
Definition: wire_format_lite.h:242
uint32_t uint32
Definition: Define.h:150
float length(float v)
Definition: vectorMath.h:208
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

template<typename MessageType >
static bool google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( input  ,
MessageType *  value 
)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
bool google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( io::CodedInputStream input,
MessageType_WorkAroundCppLookupDefect *  value 
)
inline
483  {
484  uint32 length;
485  if (!input->ReadVarint32(&length)) return false;
486  if (!input->IncrementRecursionDepth()) return false;
487  io::CodedInputStream::Limit limit = input->PushLimit(length);
488  if (!value->
489  MessageType_WorkAroundCppLookupDefect::MergePartialFromCodedStream(input))
490  return false;
491  // Make sure that parsing stopped when the limit was hit, not at an endgroup
492  // tag.
493  if (!input->ConsumedEntireMessage()) return false;
494  input->PopLimit(limit);
495  input->DecrementRecursionDepth();
496  return true;
497 }
int Limit
Definition: coded_stream.h:307
#define input
Definition: wire_format_lite.h:242
uint32_t uint32
Definition: Define.h:150
float length(float v)
Definition: vectorMath.h:208
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

static bool google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline ( input  ,
bool(*)(int)  is_valid,
RepeatedField< int > *  value 
)
static
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadPackedFixedSizePrimitive ( google::protobuf::io::CodedInputStream input,
RepeatedField< CType > *  value 
)
inlinestaticprivate
344  {
345  uint32 length;
346  if (!input->ReadVarint32(&length)) return false;
347  const uint32 old_entries = values->size();
348  const uint32 new_entries = length / sizeof(CType);
349  const uint32 new_bytes = new_entries * sizeof(CType);
350  if (new_bytes != length) return false;
351  // We would *like* to pre-allocate the buffer to write into (for
352  // speed), but *must* avoid performing a very large allocation due
353  // to a malicious user-supplied "length" above. So we have a fast
354  // path that pre-allocates when the "length" is less than a bound.
355  // We determine the bound by calling BytesUntilTotalBytesLimit() and
356  // BytesUntilLimit(). These return -1 to mean "no limit set".
357  // There are four cases:
358  // TotalBytesLimit Limit
359  // -1 -1 Use slow path.
360  // -1 >= 0 Use fast path if length <= Limit.
361  // >= 0 -1 Use slow path.
362  // >= 0 >= 0 Use fast path if length <= min(both limits).
363  int64 bytes_limit = input->BytesUntilTotalBytesLimit();
364  if (bytes_limit == -1) {
365  bytes_limit = input->BytesUntilLimit();
366  } else {
367  bytes_limit =
368  min(bytes_limit, static_cast<int64>(input->BytesUntilLimit()));
369  }
370  if (bytes_limit >= new_bytes) {
371  // Fast-path that pre-allocates *values to the final size.
372 #if defined(PROTOBUF_LITTLE_ENDIAN)
373  values->Resize(old_entries + new_entries, 0);
374  // values->mutable_data() may change after Resize(), so do this after:
375  void* dest = reinterpret_cast<void*>(values->mutable_data() + old_entries);
376  if (!input->ReadRaw(dest, new_bytes)) {
377  values->Truncate(old_entries);
378  return false;
379  }
380 #else
381  values->Reserve(old_entries + new_entries);
382  CType value;
383  for (int i = 0; i < new_entries; ++i) {
384  if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
385  values->AddAlreadyReserved(value);
386  }
387 #endif
388  } else {
389  // This is the slow-path case where "length" may be too large to
390  // safely allocate. We read as much as we can into *values
391  // without pre-allocating "length" bytes.
392  CType value;
393  for (uint32 i = 0; i < new_entries; ++i) {
394  if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
395  values->Add(value);
396  }
397  }
398  return true;
399 }
int64_t int64
Definition: Define.h:145
bool ReadVarint32(uint32 *value)
Definition: coded_stream.h:793
T min(const T &x, const T &y)
Definition: g3dmath.h:305
uint32_t uint32
Definition: Define.h:150
float length(float v)
Definition: vectorMath.h:208
bool ReadRaw(void *buffer, int size)
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitive ( input  ,
RepeatedField< CType > *  value 
)
inlinestatic
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitive ( io::CodedInputStream input,
RepeatedField< CType > *  values 
)
inline
329  {
330  uint32 length;
331  if (!input->ReadVarint32(&length)) return false;
332  io::CodedInputStream::Limit limit = input->PushLimit(length);
333  while (input->BytesUntilLimit() > 0) {
334  CType value;
335  if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
336  values->Add(value);
337  }
338  input->PopLimit(limit);
339  return true;
340 }
int Limit
Definition: coded_stream.h:307
#define input
Definition: wire_format_lite.h:242
uint32_t uint32
Definition: Define.h:150
float length(float v)
Definition: vectorMath.h:208
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline ( input  ,
RepeatedField< CType > *  value 
)
static
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline ( io::CodedInputStream input,
RepeatedField< CType > *  values 
)
424  {
425  return ReadPackedPrimitive<CType, DeclaredType>(input, values);
426 }
#define input
Definition: wire_format_lite.h:242
template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadPrimitive ( input  ,
CType *  value 
)
inlinestatic
template<typename CType , enum FieldType DeclaredType>
static const uint8* google::protobuf::internal::WireFormatLite::ReadPrimitiveFromArray ( const uint8 buffer,
CType *  value 
)
inlinestatic
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadRepeatedFixedSizePrimitive ( int  tag_size,
uint32  tag,
google::protobuf::io::CodedInputStream input,
RepeatedField< CType > *  value 
)
inlinestaticprivate
251  {
252  GOOGLE_DCHECK_EQ(UInt32Size(tag), tag_size);
253  CType value;
254  if (!ReadPrimitive<CType, DeclaredType>(input, &value))
255  return false;
256  values->Add(value);
257 
258  // For fixed size values, repeated values can be read more quickly by
259  // reading directly from a raw array.
260  //
261  // We can get a tight loop by only reading as many elements as can be
262  // added to the RepeatedField without having to do any resizing. Additionally,
263  // we only try to read as many elements as are available from the current
264  // buffer space. Doing so avoids having to perform boundary checks when
265  // reading the value: the maximum number of elements that can be read is
266  // known outside of the loop.
267  const void* void_pointer;
268  int size;
269  input->GetDirectBufferPointerInline(&void_pointer, &size);
270  if (size > 0) {
271  const uint8* buffer = reinterpret_cast<const uint8*>(void_pointer);
272  // The number of bytes each type occupies on the wire.
273  const int per_value_size = tag_size + sizeof(value);
274 
275  int elements_available = min(values->Capacity() - values->size(),
276  size / per_value_size);
277  int num_read = 0;
278  while (num_read < elements_available &&
280  buffer, tag)) != NULL) {
281  buffer = ReadPrimitiveFromArray<CType, DeclaredType>(buffer, &value);
282  values->AddAlreadyReserved(value);
283  ++num_read;
284  }
285  const int read_bytes = num_read * per_value_size;
286  if (read_bytes > 0) {
287  input->Skip(read_bytes);
288  }
289  }
290  return true;
291 }
#define GOOGLE_DCHECK_EQ
Definition: common.h:753
arena_t NULL
Definition: jemalloc_internal.h:624
T min(const T &x, const T &y)
Definition: g3dmath.h:305
static const uint8 * ExpectTagFromArray(const uint8 *buffer, uint32 expected) GOOGLE_ATTRIBUTE_ALWAYS_INLINE
Definition: coded_stream.h:959
static int UInt32Size(uint32 value)
Definition: wire_format_lite_inl.h:805
uint8_t uint8
Definition: Define.h:152
const FieldDescriptor value
Definition: descriptor.h:1522
void GetDirectBufferPointerInline(const void **data, int *size) GOOGLE_ATTRIBUTE_ALWAYS_INLINE
Definition: coded_stream.h:974

+ Here is the call graph for this function:

template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive ( int  ,
uint32  tag,
io::CodedInputStream input,
RepeatedField< CType > *  values 
)
inline
233  {
234  CType value;
235  if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
236  values->Add(value);
237  int elements_already_reserved = values->Capacity() - values->size();
238  while (elements_already_reserved > 0 && input->ExpectTag(tag)) {
239  if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
240  values->AddAlreadyReserved(value);
241  elements_already_reserved--;
242  }
243  return true;
244 }
#define input
Definition: wire_format_lite.h:242
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive ( int  tag_size,
uint32  tag,
input  ,
RepeatedField< CType > *  value 
)
inlinestatic
template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline ( int  tag_size,
uint32  tag,
input  ,
RepeatedField< CType > *  value 
)
static
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline ( int  tag_size,
uint32  tag,
io::CodedInputStream input,
RepeatedField< CType > *  value 
)
322  {
323  return ReadRepeatedPrimitive<CType, DeclaredType>(
324  tag_size, tag, input, value);
325 }
#define input
Definition: wire_format_lite.h:242
const FieldDescriptor value
Definition: descriptor.h:1522
static bool google::protobuf::internal::WireFormatLite::ReadString ( input  ,
string *  value 
)
static
int google::protobuf::internal::WireFormatLite::SInt32Size ( int32  value)
inlinestatic
811  {
813 }
static uint32 ZigZagEncode32(int32 n)
Definition: wire_format_lite.h:639
const FieldDescriptor value
Definition: descriptor.h:1522
static int VarintSize32(uint32 value)
Definition: coded_stream.h:1087
int google::protobuf::internal::WireFormatLite::SInt64Size ( int64  value)
inlinestatic
814  {
816 }
static int VarintSize64(uint64 value)
static uint64 ZigZagEncode64(int64 n)
Definition: wire_format_lite.h:648
const FieldDescriptor value
Definition: descriptor.h:1522
static bool google::protobuf::internal::WireFormatLite::SkipField ( io::CodedInputStream input,
uint32  tag 
)
static
static bool google::protobuf::internal::WireFormatLite::SkipField ( io::CodedInputStream input,
uint32  tag,
io::CodedOutputStream output 
)
static
static bool google::protobuf::internal::WireFormatLite::SkipMessage ( io::CodedInputStream input)
static
static bool google::protobuf::internal::WireFormatLite::SkipMessage ( io::CodedInputStream input,
io::CodedOutputStream output 
)
static
int google::protobuf::internal::WireFormatLite::StringSize ( const string &  value)
inlinestatic
821  {
823  value.size();
824 }
const FieldDescriptor value
Definition: descriptor.h:1522
static int VarintSize32(uint32 value)
Definition: coded_stream.h:1087
int google::protobuf::internal::WireFormatLite::TagSize ( int  field_number,
WireFormatLite::FieldType  type 
)
inlinestatic
580  {
583  if (type == TYPE_GROUP) {
584  // Groups have both a start and an end tag.
585  return result * 2;
586  } else {
587  return result;
588  }
589 }
static const int kTagTypeBits
Definition: wire_format_lite.h:143
static int VarintSize32(uint32 value)
Definition: coded_stream.h:1087
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int google::protobuf::internal::WireFormatLite::UInt32Size ( uint32  value)
inlinestatic
805  {
807 }
const FieldDescriptor value
Definition: descriptor.h:1522
static int VarintSize32(uint32 value)
Definition: coded_stream.h:1087

+ Here is the caller graph for this function:

int google::protobuf::internal::WireFormatLite::UInt64Size ( uint64  value)
inlinestatic
808  {
810 }
static int VarintSize64(uint64 value)
const FieldDescriptor value
Definition: descriptor.h:1522
static WireFormatLite::WireType google::protobuf::internal::WireFormatLite::WireTypeForFieldType ( WireFormatLite::FieldType  type)
inlinestatic
138  {
139  return kWireTypeForFieldType[type];
140  }
static const WireFormatLite::WireType kWireTypeForFieldType[]
Definition: wire_format_lite.h:515

+ Here is the caller graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteBool ( field_number  ,
bool  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteBoolNoTag ( bool  value,
output   
)
inlinestatic
555  {
556  output->WriteVarint32(value ? 1 : 0);
557 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteBoolNoTagToArray ( bool  value,
output   
)
inlinestatic
648  {
649  return io::CodedOutputStream::WriteVarint32ToArray(value ? 1 : 0, target);
650 }
static uint8 * WriteVarint32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1009
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteBoolToArray ( field_number  ,
bool  value,
output   
)
inlinestatic
730  {
731  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
732  return WriteBoolNoTagToArray(value, target);
733 }
static uint8 * WriteBoolNoTagToArray(bool value, output) INL
Definition: wire_format_lite_inl.h:647
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteBytes ( field_number  ,
const string &  value,
output   
)
static
static void google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased ( field_number  ,
const string &  value,
output   
)
static
uint8 * google::protobuf::internal::WireFormatLite::WriteBytesToArray ( field_number  ,
const string &  value,
output   
)
inlinestatic
753  {
756 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
static uint8 * WriteStringWithSizeToArray(const string &str, uint8 *target)
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteDouble ( field_number  ,
double  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteDoubleNoTag ( double  value,
output   
)
inlinestatic
551  {
552  output->WriteLittleEndian64(EncodeDouble(value));
553 }
static uint64 EncodeDouble(double value)
Definition: wire_format_lite.h:603
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteDoubleNoTagToArray ( double  value,
output   
)
inlinestatic
643  {
645  target);
646 }
static uint64 EncodeDouble(double value)
Definition: wire_format_lite.h:603
const FieldDescriptor value
Definition: descriptor.h:1522
static uint8 * WriteLittleEndian64ToArray(uint64 value, uint8 *target)
Definition: coded_stream.h:1049

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteDoubleToArray ( field_number  ,
double  value,
output   
)
inlinestatic
724  {
725  target = WriteTagToArray(field_number, WIRETYPE_FIXED64, target);
726  return WriteDoubleNoTagToArray(value, target);
727 }
static uint8 * WriteDoubleNoTagToArray(double value, output) INL
Definition: wire_format_lite_inl.h:642
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteEnum ( field_number  ,
int  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteEnumNoTag ( int  value,
output   
)
inlinestatic
559  {
560  output->WriteVarint32SignExtended(value);
561 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray ( int  value,
output   
)
inlinestatic
652  {
654 }
const FieldDescriptor value
Definition: descriptor.h:1522
static uint8 * WriteVarint32SignExtendedToArray(int32 value, uint8 *target)
Definition: coded_stream.h:1027

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteEnumToArray ( field_number  ,
int  value,
output   
)
inlinestatic
736  {
737  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
738  return WriteEnumNoTagToArray(value, target);
739 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
static uint8 * WriteEnumNoTagToArray(int value, output) INL
Definition: wire_format_lite_inl.h:651
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteFixed32 ( field_number  ,
uint32  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteFixed32NoTag ( uint32  value,
output   
)
inlinestatic
531  {
532  output->WriteLittleEndian32(value);
533 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteFixed32NoTagToArray ( uint32  value,
output   
)
inlinestatic
620  {
622 }
static uint8 * WriteLittleEndian32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1036
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteFixed32ToArray ( field_number  ,
uint32  value,
output   
)
inlinestatic
694  {
695  target = WriteTagToArray(field_number, WIRETYPE_FIXED32, target);
696  return WriteFixed32NoTagToArray(value, target);
697 }
static uint8 * WriteFixed32NoTagToArray(uint32 value, output) INL
Definition: wire_format_lite_inl.h:619
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteFixed64 ( field_number  ,
uint64  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteFixed64NoTag ( uint64  value,
output   
)
inlinestatic
535  {
536  output->WriteLittleEndian64(value);
537 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteFixed64NoTagToArray ( uint64  value,
output   
)
inlinestatic
624  {
626 }
const FieldDescriptor value
Definition: descriptor.h:1522
static uint8 * WriteLittleEndian64ToArray(uint64 value, uint8 *target)
Definition: coded_stream.h:1049

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteFixed64ToArray ( field_number  ,
uint64  value,
output   
)
inlinestatic
700  {
701  target = WriteTagToArray(field_number, WIRETYPE_FIXED64, target);
702  return WriteFixed64NoTagToArray(value, target);
703 }
static uint8 * WriteFixed64NoTagToArray(uint64 value, output) INL
Definition: wire_format_lite_inl.h:623
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteFloat ( field_number  ,
float  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteFloatNoTag ( float  value,
output   
)
inlinestatic
547  {
548  output->WriteLittleEndian32(EncodeFloat(value));
549 }
static uint32 EncodeFloat(float value)
Definition: wire_format_lite.h:591
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteFloatNoTagToArray ( float  value,
output   
)
inlinestatic
638  {
640  target);
641 }
static uint32 EncodeFloat(float value)
Definition: wire_format_lite.h:591
static uint8 * WriteLittleEndian32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1036
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteFloatToArray ( field_number  ,
float  value,
output   
)
inlinestatic
718  {
719  target = WriteTagToArray(field_number, WIRETYPE_FIXED32, target);
720  return WriteFloatNoTagToArray(value, target);
721 }
static uint8 * WriteFloatNoTagToArray(float value, output) INL
Definition: wire_format_lite_inl.h:637
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteGroup ( field_number  ,
const MessageLite value,
output   
)
static
static void google::protobuf::internal::WireFormatLite::WriteGroupMaybeToArray ( field_number  ,
const MessageLite value,
output   
)
static
template<typename MessageType >
static void google::protobuf::internal::WireFormatLite::WriteGroupNoVirtual ( field_number  ,
const MessageType &  value,
output   
)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
void google::protobuf::internal::WireFormatLite::WriteGroupNoVirtual ( int  field_number,
const MessageType_WorkAroundCppLookupDefect &  value,
io::CodedOutputStream output 
)
inline
568  {
570  value.MessageType_WorkAroundCppLookupDefect::SerializeWithCachedSizes(output);
572 }
static void WriteTag(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:501
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

template<typename MessageType >
static uint8* google::protobuf::internal::WireFormatLite::WriteGroupNoVirtualToArray ( field_number  ,
const MessageType &  value,
output   
)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
uint8* google::protobuf::internal::WireFormatLite::WriteGroupNoVirtualToArray ( int  field_number,
const MessageType_WorkAroundCppLookupDefect &  value,
uint8 target 
)
inline
780  {
782  target = value.MessageType_WorkAroundCppLookupDefect ::SerializeWithCachedSizesToArray(target);
784 }
785 
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteGroupToArray ( field_number  ,
const MessageLite value,
output   
)
inlinestatic
761  {
763  target = value.SerializeWithCachedSizesToArray(target);
765 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteInt32 ( field_number  ,
int32  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteInt32NoTag ( int32  value,
output   
)
inlinestatic
507  {
508  output->WriteVarint32SignExtended(value);
509 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteInt32NoTagToArray ( int32  value,
output   
)
inlinestatic
593  {
595 }
const FieldDescriptor value
Definition: descriptor.h:1522
static uint8 * WriteVarint32SignExtendedToArray(int32 value, uint8 *target)
Definition: coded_stream.h:1027

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteInt32ToArray ( field_number  ,
int32  value,
output   
)
inlinestatic
658  {
659  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
660  return WriteInt32NoTagToArray(value, target);
661 }
static uint8 * WriteInt32NoTagToArray(int32 value, output) INL
Definition: wire_format_lite_inl.h:592
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteInt64 ( field_number  ,
int64  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteInt64NoTag ( int64  value,
output   
)
inlinestatic
511  {
512  output->WriteVarint64(static_cast<uint64>(value));
513 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteInt64NoTagToArray ( int64  value,
output   
)
inlinestatic
597  {
599  static_cast<uint64>(value), target);
600 }
static uint8 * WriteVarint64ToArray(uint64 value, uint8 *target)
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteInt64ToArray ( field_number  ,
int64  value,
output   
)
inlinestatic
664  {
665  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
666  return WriteInt64NoTagToArray(value, target);
667 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
static uint8 * WriteInt64NoTagToArray(int64 value, output) INL
Definition: wire_format_lite_inl.h:596
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteMessage ( field_number  ,
const MessageLite value,
output   
)
static
static void google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray ( field_number  ,
const MessageLite value,
output   
)
static
template<typename MessageType >
static void google::protobuf::internal::WireFormatLite::WriteMessageNoVirtual ( field_number  ,
const MessageType &  value,
output   
)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
void google::protobuf::internal::WireFormatLite::WriteMessageNoVirtual ( int  field_number,
const MessageType_WorkAroundCppLookupDefect &  value,
io::CodedOutputStream output 
)
inline
576  {
578  output->WriteVarint32(
579  value.MessageType_WorkAroundCppLookupDefect::GetCachedSize());
580  value.MessageType_WorkAroundCppLookupDefect::SerializeWithCachedSizes(output);
581 }
static void WriteTag(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:501
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

template<typename MessageType >
static uint8* google::protobuf::internal::WireFormatLite::WriteMessageNoVirtualToArray ( field_number  ,
const MessageType &  value,
output   
)
inlinestatic
template<typename MessageType_WorkAroundCppLookupDefect >
uint8* google::protobuf::internal::WireFormatLite::WriteMessageNoVirtualToArray ( int  field_number,
const MessageType_WorkAroundCppLookupDefect &  value,
uint8 target 
)
inline
789  {
792  value.MessageType_WorkAroundCppLookupDefect::GetCachedSize(), target);
793  return value.MessageType_WorkAroundCppLookupDefect ::SerializeWithCachedSizesToArray(target);
794 }
795 
static uint8 * WriteVarint32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1009
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteMessageToArray ( field_number  ,
const MessageLite value,
output   
)
inlinestatic
768  {
771  value.GetCachedSize(), target);
772  return value.SerializeWithCachedSizesToArray(target);
773 }
static uint8 * WriteVarint32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1009
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteSFixed32 ( field_number  ,
int32  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteSFixed32NoTag ( int32  value,
output   
)
inlinestatic
539  {
540  output->WriteLittleEndian32(static_cast<uint32>(value));
541 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSFixed32NoTagToArray ( int32  value,
output   
)
inlinestatic
628  {
630  static_cast<uint32>(value), target);
631 }
static uint8 * WriteLittleEndian32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1036
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSFixed32ToArray ( field_number  ,
int32  value,
output   
)
inlinestatic
706  {
707  target = WriteTagToArray(field_number, WIRETYPE_FIXED32, target);
708  return WriteSFixed32NoTagToArray(value, target);
709 }
static uint8 * WriteSFixed32NoTagToArray(int32 value, output) INL
Definition: wire_format_lite_inl.h:627
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteSFixed64 ( field_number  ,
int64  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteSFixed64NoTag ( int64  value,
output   
)
inlinestatic
543  {
544  output->WriteLittleEndian64(static_cast<uint64>(value));
545 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSFixed64NoTagToArray ( int64  value,
output   
)
inlinestatic
633  {
635  static_cast<uint64>(value), target);
636 }
const FieldDescriptor value
Definition: descriptor.h:1522
static uint8 * WriteLittleEndian64ToArray(uint64 value, uint8 *target)
Definition: coded_stream.h:1049

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray ( field_number  ,
int64  value,
output   
)
inlinestatic
712  {
713  target = WriteTagToArray(field_number, WIRETYPE_FIXED64, target);
714  return WriteSFixed64NoTagToArray(value, target);
715 }
static uint8 * WriteSFixed64NoTagToArray(int64 value, output) INL
Definition: wire_format_lite_inl.h:632
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteSInt32 ( field_number  ,
int32  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteSInt32NoTag ( int32  value,
output   
)
inlinestatic
523  {
524  output->WriteVarint32(ZigZagEncode32(value));
525 }
#define output
Definition: wire_format_lite.h:381
static uint32 ZigZagEncode32(int32 n)
Definition: wire_format_lite.h:639
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSInt32NoTagToArray ( int32  value,
output   
)
inlinestatic
610  {
612  target);
613 }
static uint8 * WriteVarint32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1009
static uint32 ZigZagEncode32(int32 n)
Definition: wire_format_lite.h:639
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSInt32ToArray ( field_number  ,
int32  value,
output   
)
inlinestatic
682  {
683  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
684  return WriteSInt32NoTagToArray(value, target);
685 }
static uint8 * WriteSInt32NoTagToArray(int32 value, output) INL
Definition: wire_format_lite_inl.h:609
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteSInt64 ( field_number  ,
int64  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteSInt64NoTag ( int64  value,
output   
)
inlinestatic
527  {
528  output->WriteVarint64(ZigZagEncode64(value));
529 }
#define output
Definition: wire_format_lite.h:381
static uint64 ZigZagEncode64(int64 n)
Definition: wire_format_lite.h:648
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSInt64NoTagToArray ( int64  value,
output   
)
inlinestatic
615  {
617  target);
618 }
static uint8 * WriteVarint64ToArray(uint64 value, uint8 *target)
static uint64 ZigZagEncode64(int64 n)
Definition: wire_format_lite.h:648
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteSInt64ToArray ( field_number  ,
int64  value,
output   
)
inlinestatic
688  {
689  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
690  return WriteSInt64NoTagToArray(value, target);
691 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
static uint8 * WriteSInt64NoTagToArray(int64 value, output) INL
Definition: wire_format_lite_inl.h:614
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteString ( field_number  ,
const string &  value,
output   
)
static
static void google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased ( field_number  ,
const string &  value,
output   
)
static
uint8 * google::protobuf::internal::WireFormatLite::WriteStringToArray ( field_number  ,
const string &  value,
output   
)
inlinestatic
743  {
744  // String is for UTF-8 text only
745  // WARNING: In wire_format.cc, both strings and bytes are handled by
746  // WriteString() to avoid code duplication. If the implementations become
747  // different, you will need to update that usage.
750 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
static uint8 * WriteStringWithSizeToArray(const string &str, uint8 *target)
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

void google::protobuf::internal::WireFormatLite::WriteTag ( field_number  ,
WireType  type,
output   
)
inlinestatic
502  {
503  output->WriteTag(MakeTag(field_number, type));
504 }
#define output
Definition: wire_format_lite.h:381
static uint32 MakeTag(int field_number, WireType type)
Definition: wire_format_lite.h:567
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteTagToArray ( field_number  ,
WireType  type,
output   
)
inlinestatic
587  {
589  target);
590 }
static uint32 MakeTag(int field_number, WireType type)
Definition: wire_format_lite.h:567
static uint8 * WriteTagToArray(uint32 value, uint8 *target) GOOGLE_ATTRIBUTE_ALWAYS_INLINE
Definition: coded_stream.h:1073
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteUInt32 ( field_number  ,
uint32  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteUInt32NoTag ( uint32  value,
output   
)
inlinestatic
515  {
516  output->WriteVarint32(value);
517 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteUInt32NoTagToArray ( uint32  value,
output   
)
inlinestatic
602  {
604 }
static uint8 * WriteVarint32ToArray(uint32 value, uint8 *target)
Definition: coded_stream.h:1009
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteUInt32ToArray ( field_number  ,
uint32  value,
output   
)
inlinestatic
670  {
671  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
672  return WriteUInt32NoTagToArray(value, target);
673 }
static uint8 * WriteUInt32NoTagToArray(uint32 value, output) INL
Definition: wire_format_lite_inl.h:601
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteUInt64 ( field_number  ,
uint64  value,
output   
)
static
void google::protobuf::internal::WireFormatLite::WriteUInt64NoTag ( uint64  value,
output   
)
inlinestatic
519  {
520  output->WriteVarint64(value);
521 }
#define output
Definition: wire_format_lite.h:381
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteUInt64NoTagToArray ( uint64  value,
output   
)
inlinestatic
606  {
608 }
static uint8 * WriteVarint64ToArray(uint64 value, uint8 *target)
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8 * google::protobuf::internal::WireFormatLite::WriteUInt64ToArray ( field_number  ,
uint64  value,
output   
)
inlinestatic
676  {
677  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
678  return WriteUInt64NoTagToArray(value, target);
679 }
static uint8 * WriteTagToArray(field_number, WireType type, output) INL
Definition: wire_format_lite_inl.h:585
const FieldDescriptor value
Definition: descriptor.h:1522
static uint8 * WriteUInt64NoTagToArray(uint64 value, output) INL
Definition: wire_format_lite_inl.h:605
#define field_number
Definition: wire_format_lite.h:244

+ Here is the call graph for this function:

int32 google::protobuf::internal::WireFormatLite::ZigZagDecode32 ( uint32  n)
inlinestatic
644  {
645  return (n >> 1) ^ -static_cast<int32>(n & 1);
646 }
int32_t int32
Definition: Define.h:146
int64 google::protobuf::internal::WireFormatLite::ZigZagDecode64 ( uint64  n)
inlinestatic
653  {
654  return (n >> 1) ^ -static_cast<int64>(n & 1);
655 }
int64_t int64
Definition: Define.h:145
uint32 google::protobuf::internal::WireFormatLite::ZigZagEncode32 ( int32  n)
inlinestatic
639  {
640  // Note: the right-shift must be arithmetic
641  return (n << 1) ^ (n >> 31);
642 }

+ Here is the caller graph for this function:

uint64 google::protobuf::internal::WireFormatLite::ZigZagEncode64 ( int64  n)
inlinestatic
648  {
649  // Note: the right-shift must be arithmetic
650  return (n << 1) ^ (n >> 63);
651 }

+ Here is the caller graph for this function:

Member Data Documentation

const int google::protobuf::internal::WireFormatLite::kBoolSize = 1
static
const int google::protobuf::internal::WireFormatLite::kDoubleSize = 8
static
const CppType google::protobuf::internal::WireFormatLite::kFieldTypeToCppTypeMap[]
staticprivate
const int google::protobuf::internal::WireFormatLite::kFixed32Size = 4
static
const int google::protobuf::internal::WireFormatLite::kFixed64Size = 8
static
const int google::protobuf::internal::WireFormatLite::kFloatSize = 4
static
const int google::protobuf::internal::WireFormatLite::kMessageSetItemEndTag
static
const int google::protobuf::internal::WireFormatLite::kMessageSetItemNumber = 1
static
const int google::protobuf::internal::WireFormatLite::kMessageSetItemStartTag
static
const int google::protobuf::internal::WireFormatLite::kMessageSetItemTagsSize
static
const int google::protobuf::internal::WireFormatLite::kMessageSetMessageNumber = 3
static
const int google::protobuf::internal::WireFormatLite::kMessageSetMessageTag
static
const int google::protobuf::internal::WireFormatLite::kMessageSetTypeIdNumber = 2
static
const int google::protobuf::internal::WireFormatLite::kMessageSetTypeIdTag
static
const int google::protobuf::internal::WireFormatLite::kSFixed32Size = 4
static
const int google::protobuf::internal::WireFormatLite::kSFixed64Size = 8
static
const int google::protobuf::internal::WireFormatLite::kTagTypeBits = 3
static
const uint32 google::protobuf::internal::WireFormatLite::kTagTypeMask = (1 << kTagTypeBits) - 1
static
const WireFormatLite::WireType google::protobuf::internal::WireFormatLite::kWireTypeForFieldType[]
staticprivate

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