Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
google::protobuf.internal::WireFormat Class Reference

#include <wire_format.h>

Public Types

enum  Operation { PARSE = 0, SERIALIZE = 1 }
 

Static Public Member Functions

static size_t ByteSize (const Message &message)
 
static size_t ComputeUnknownFieldsSize (const UnknownFieldSet &unknown_fields)
 
static size_t ComputeUnknownMessageSetItemsSize (const UnknownFieldSet &unknown_fields)
 
static size_t FieldByteSize (const FieldDescriptor *field, const Message &message)
 
static size_t FieldDataOnlyByteSize (const FieldDescriptor *field, const Message &message)
 
static uint32 MakeTag (const FieldDescriptor *field)
 
static size_t MessageSetItemByteSize (const FieldDescriptor *field, const Message &message)
 
static bool ParseAndMergeField (uint32 tag, const FieldDescriptor *field, Message *message, io::CodedInputStream *input)
 
static bool ParseAndMergeMessageSetItem (io::CodedInputStream *input, Message *message)
 
static bool ParseAndMergePartial (io::CodedInputStream *input, Message *message)
 
static bool ReadPackedEnumPreserveUnknowns (io::CodedInputStream *input, uint32 field_number, bool(*is_valid)(int), UnknownFieldSet *unknown_fields, RepeatedField< int > *values)
 
static void SerializeFieldWithCachedSizes (const FieldDescriptor *field, const Message &message, io::CodedOutputStream *output)
 
static void SerializeMessageSetItemWithCachedSizes (const FieldDescriptor *field, const Message &message, io::CodedOutputStream *output)
 
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 void SerializeWithCachedSizes (const Message &message, int size, io::CodedOutputStream *output)
 
static bool SkipField (io::CodedInputStream *input, uint32 tag, UnknownFieldSet *unknown_fields)
 
static bool SkipMessage (io::CodedInputStream *input, UnknownFieldSet *unknown_fields)
 
static size_t TagSize (int field_number, FieldDescriptor::Type type)
 
static void VerifyUTF8String (const char *data, int size, Operation op)
 
static void VerifyUTF8StringNamedField (const char *data, int size, Operation op, const char *field_name)
 
static WireFormatLite::WireType WireTypeForField (const FieldDescriptor *field)
 
static WireFormatLite::WireType WireTypeForFieldType (FieldDescriptor::Type type)
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (WireFormat)
 

Static Private Member Functions

static bool ParseAndMergeMessageSetField (uint32 field_number, const FieldDescriptor *field, Message *message, io::CodedInputStream *input)
 
static bool SkipMessageSetField (io::CodedInputStream *input, uint32 field_number, UnknownFieldSet *unknown_fields)
 

Detailed Description

Definition at line 78 of file wire_format.h.

Member Enumeration Documentation

◆ Operation

Enumerator
PARSE 
SERIALIZE 

Definition at line 225 of file wire_format.h.

Member Function Documentation

◆ ByteSize()

size_t google::protobuf.internal::WireFormat::ByteSize ( const Message message)
static

Definition at line 1078 of file wire_format.cc.

◆ ComputeUnknownFieldsSize()

size_t google::protobuf.internal::WireFormat::ComputeUnknownFieldsSize ( const UnknownFieldSet unknown_fields)
static

Definition at line 319 of file wire_format.cc.

◆ ComputeUnknownMessageSetItemsSize()

size_t google::protobuf.internal::WireFormat::ComputeUnknownMessageSetItemsSize ( const UnknownFieldSet unknown_fields)
static

Definition at line 361 of file wire_format.cc.

◆ FieldByteSize()

size_t google::protobuf.internal::WireFormat::FieldByteSize ( const FieldDescriptor field,
const Message message 
)
static

Definition at line 1110 of file wire_format.cc.

◆ FieldDataOnlyByteSize()

size_t google::protobuf.internal::WireFormat::FieldDataOnlyByteSize ( const FieldDescriptor field,
const Message message 
)
static

Definition at line 1228 of file wire_format.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf.internal::WireFormat::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( WireFormat  )
private

◆ MakeTag()

uint32 google::protobuf.internal::WireFormat::MakeTag ( const FieldDescriptor field)
inlinestatic

Definition at line 289 of file wire_format.h.

◆ MessageSetItemByteSize()

size_t google::protobuf.internal::WireFormat::MessageSetItemByteSize ( const FieldDescriptor field,
const Message message 
)
static

Definition at line 1339 of file wire_format.cc.

◆ ParseAndMergeField()

bool google::protobuf.internal::WireFormat::ParseAndMergeField ( uint32  tag,
const FieldDescriptor field,
Message message,
io::CodedInputStream input 
)
static

Definition at line 470 of file wire_format.cc.

◆ ParseAndMergeMessageSetField()

bool google::protobuf.internal::WireFormat::ParseAndMergeMessageSetField ( uint32  field_number,
const FieldDescriptor field,
Message message,
io::CodedInputStream input 
)
staticprivate

Definition at line 444 of file wire_format.cc.

◆ ParseAndMergeMessageSetItem()

bool google::protobuf.internal::WireFormat::ParseAndMergeMessageSetItem ( io::CodedInputStream input,
Message message 
)
static

Definition at line 688 of file wire_format.cc.

◆ ParseAndMergePartial()

bool google::protobuf.internal::WireFormat::ParseAndMergePartial ( io::CodedInputStream input,
Message message 
)
static

Definition at line 384 of file wire_format.cc.

◆ ReadPackedEnumPreserveUnknowns()

bool google::protobuf.internal::WireFormat::ReadPackedEnumPreserveUnknowns ( io::CodedInputStream input,
uint32  field_number,
bool(*)(int)  is_valid,
UnknownFieldSet unknown_fields,
RepeatedField< int > *  values 
)
static

Definition at line 167 of file wire_format.cc.

◆ SerializeFieldWithCachedSizes()

void google::protobuf.internal::WireFormat::SerializeFieldWithCachedSizes ( const FieldDescriptor field,
const Message message,
io::CodedOutputStream output 
)
static

Definition at line 869 of file wire_format.cc.

◆ SerializeMessageSetItemWithCachedSizes()

void google::protobuf.internal::WireFormat::SerializeMessageSetItemWithCachedSizes ( const FieldDescriptor field,
const Message message,
io::CodedOutputStream output 
)
static

Definition at line 1053 of file wire_format.cc.

◆ SerializeUnknownFields()

void google::protobuf.internal::WireFormat::SerializeUnknownFields ( const UnknownFieldSet unknown_fields,
io::CodedOutputStream output 
)
static

Definition at line 191 of file wire_format.cc.

◆ SerializeUnknownFieldsToArray()

uint8 * google::protobuf.internal::WireFormat::SerializeUnknownFieldsToArray ( const UnknownFieldSet unknown_fields,
uint8 target 
)
static

Definition at line 229 of file wire_format.cc.

◆ SerializeUnknownMessageSetItems()

void google::protobuf.internal::WireFormat::SerializeUnknownMessageSetItems ( const UnknownFieldSet unknown_fields,
io::CodedOutputStream output 
)
static

Definition at line 263 of file wire_format.cc.

◆ SerializeUnknownMessageSetItemsToArray()

uint8 * google::protobuf.internal::WireFormat::SerializeUnknownMessageSetItemsToArray ( const UnknownFieldSet unknown_fields,
uint8 target 
)
static

Definition at line 287 of file wire_format.cc.

◆ SerializeWithCachedSizes()

void google::protobuf.internal::WireFormat::SerializeWithCachedSizes ( const Message message,
int  size,
io::CodedOutputStream output 
)
static

Definition at line 711 of file wire_format.cc.

◆ SkipField()

bool google::protobuf.internal::WireFormat::SkipField ( io::CodedInputStream input,
uint32  tag,
UnknownFieldSet unknown_fields 
)
static

Definition at line 84 of file wire_format.cc.

◆ SkipMessage()

bool google::protobuf.internal::WireFormat::SkipMessage ( io::CodedInputStream input,
UnknownFieldSet unknown_fields 
)
static

Definition at line 147 of file wire_format.cc.

◆ SkipMessageSetField()

bool google::protobuf.internal::WireFormat::SkipMessageSetField ( io::CodedInputStream input,
uint32  field_number,
UnknownFieldSet unknown_fields 
)
staticprivate

Definition at line 435 of file wire_format.cc.

◆ TagSize()

size_t google::protobuf.internal::WireFormat::TagSize ( int  field_number,
FieldDescriptor::Type  type 
)
inlinestatic

Definition at line 293 of file wire_format.h.

◆ VerifyUTF8String()

void google::protobuf.internal::WireFormat::VerifyUTF8String ( const char *  data,
int  size,
WireFormat::Operation  op 
)
inlinestatic

Definition at line 302 of file wire_format.h.

◆ VerifyUTF8StringNamedField()

void google::protobuf.internal::WireFormat::VerifyUTF8StringNamedField ( const char *  data,
int  size,
WireFormat::Operation  op,
const char *  field_name 
)
inlinestatic

Definition at line 315 of file wire_format.h.

◆ WireTypeForField()

WireFormatLite::WireType google::protobuf.internal::WireFormat::WireTypeForField ( const FieldDescriptor field)
inlinestatic

Definition at line 272 of file wire_format.h.

◆ WireTypeForFieldType()

WireFormatLite::WireType google::protobuf.internal::WireFormat::WireTypeForFieldType ( FieldDescriptor::Type  type)
inlinestatic

Definition at line 281 of file wire_format.h.


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


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