39 #ifndef GOOGLE_PROTOBUF_WIRE_FORMAT_H__
40 #define GOOGLE_PROTOBUF_WIRE_FORMAT_H__
51 #define GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
57 class CodedInputStream;
58 class CodedOutputStream;
60 class UnknownFieldSet;
116 static void SerializeWithCachedSizes(
125 static int ByteSize(
const Message& message);
142 static void SerializeUnknownFields(
const UnknownFieldSet& unknown_fields,
149 static uint8* SerializeUnknownFieldsToArray(
155 static void SerializeUnknownMessageSetItems(
163 static uint8* SerializeUnknownMessageSetItemsToArray(
168 static int ComputeUnknownFieldsSize(
const UnknownFieldSet& unknown_fields);
172 static int ComputeUnknownMessageSetItemsSize(
185 static bool ParseAndMergeField(
192 static void SerializeFieldWithCachedSizes(
200 static int FieldByteSize(
206 static bool ParseAndMergeMessageSetItem(
209 static void SerializeMessageSetItemWithCachedSizes(
213 static int MessageSetItemByteSize(
221 static int FieldDataOnlyByteSize(
233 static void VerifyUTF8String(
const char* data,
int size, Operation op);
236 static void VerifyUTF8StringNamedField(
const char* data,
239 const char* field_name);
243 static void VerifyUTF8StringFallback(
247 const char* field_name);
255 static bool ParseAndMergeMessageSetField(
uint32 field_number,
269 : unknown_fields_(unknown_fields) {}
297 static_cast<WireFormatLite::FieldType>(
298 implicit_cast<int>(type)));
309 static_cast<WireFormatLite::FieldType>(
310 implicit_cast<int>(type)));
315 #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
319 (void)data; (void)size; (void)op;
325 const char* field_name) {
326 #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
336 #endif // GOOGLE_PROTOBUF_WIRE_FORMAT_H__
const FieldOptions & options() const
Definition: unknown_field_set.h:74
uint8_t uint8
Definition: common.h:175
arena_t NULL
Definition: jemalloc_internal.h:624
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
UnknownFieldSet * unknown_fields_
Definition: wire_format.h:278
UnknownFieldSetFieldSkipper(UnknownFieldSet *unknown_fields)
Definition: wire_format.h:268
virtual ~UnknownFieldSetFieldSkipper()
Definition: wire_format.h:270
Definition: message.h:165
Definition: wire_format.h:266
Definition: coded_stream.h:621
uint32_t uint32
Definition: common.h:177
Definition: document.h:390
#define LIBPROTOBUF_EXPORT
Definition: common.h:105
bool packed() const
Definition: descriptor.pb.h:5592
Definition: descriptor.h:342
Definition: BnetFileGenerator.h:47
const FieldDescriptor value
Definition: descriptor.h:1522
Type
Definition: descriptor.h:346
Definition: wire_format_lite.h:524