Go to the documentation of this file.
39 #ifndef GOOGLE_PROTOBUF_WIRE_FORMAT_H__
40 #define GOOGLE_PROTOBUF_WIRE_FORMAT_H__
44 #include <google/protobuf/stubs/common.h>
45 #include <google/protobuf/parse_context.h>
46 #include <google/protobuf/io/coded_stream.h>
47 #include <google/protobuf/descriptor.h>
48 #include <google/protobuf/generated_message_util.h>
49 #include <google/protobuf/message.h>
50 #include <google/protobuf/metadata_lite.h>
51 #include <google/protobuf/wire_format_lite.h>
52 #include <google/protobuf/stubs/casts.h>
55 #error "You cannot SWIG proto headers"
58 #include <google/protobuf/port_def.inc>
80 class PROTOBUF_EXPORT WireFormat {
116 internal::ParseContext*
ctx);
127 int expected_endpoint =
output->ByteCount() +
size;
131 <<
": Protocol message serialized to a size different from what was "
132 "originally expected. Perhaps it was modified by another thread "
133 "during serialization?";
164 bool (*is_valid)(
int),
171 output->SetCur(InternalSerializeUnknownFieldsToArray(
184 return InternalSerializeUnknownFieldsToArray(unknown_fields,
target,
187 static uint8_t* InternalSerializeUnknownFieldsToArray(
203 static uint8_t* SerializeUnknownMessageSetItemsToArray(
226 static bool ParseAndMergeField(
238 static uint8_t* InternalSerializeField(
255 output->SetCur(InternalSerializeMessageSetItem(
258 static uint8_t* InternalSerializeMessageSetItem(
268 static size_t FieldDataOnlyByteSize(
283 static void VerifyUTF8StringNamedField(
const char*
data,
int size,
287 struct MessageSetParser;
294 static bool ParseAndMergeMessageSetField(
uint32_t field_number,
299 static const char* _InternalParseAndMergeField(
Message*
msg,
const char*
ptr,
309 class PROTOBUF_EXPORT UnknownFieldSetFieldSkipper :
public FieldSkipper {
312 : unknown_fields_(unknown_fields) {}
318 void SkipUnknownEnum(
int field_number,
int value)
override;
328 if (
field->is_packed()) {
358 #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
371 const char* field_name) {
372 #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
387 io::EpsCopyOutputStream*
stream) {
400 CachedSize* cached_size);
403 const MapKey&
value);
407 io::EpsCopyOutputStream*
stream);
412 #include <google/protobuf/port_undef.inc>
414 #endif // GOOGLE_PROTOBUF_WIRE_FORMAT_H__
const Descriptor::ReservedRange value
size_t ComputeUnknownMessageSetItemsSize(const UnknownFieldSet &unknown_fields)
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
static size_t MapKeyDataOnlyByteSize(const FieldDescriptor *field, const MapKey &value)
static uint8 * SerializeMapKeyWithCachedSizes(const FieldDescriptor *field, const MapKey &value, uint8 *target, io::EpsCopyOutputStream *stream)
static bool IsDefaultSerializationDeterministic()
#define GOOGLE_CHECK_EQ(A, B)
static PyObject * UnknownFieldSet(CMessage *self)
~UnknownFieldSetFieldSkipper() override
static void * tag(intptr_t t)
unsigned __int64 uint64_t
UnknownFieldSetFieldSkipper(UnknownFieldSet *unknown_fields)
GRPC_CUSTOM_CODEDINPUTSTREAM CodedInputStream
const FieldDescriptor * field
std::array< int64_t, Size > values
size_t ComputeUnknownFieldsSize(const InternalMetadataWithArena &metadata, size_t total_size, CachedSize *cached_size)
uint8 * InternalSerializeUnknownMessageSetItemsToArray(const UnknownFieldSet &unknown_fields, uint8 *target, io::EpsCopyOutputStream *stream)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:53