#include "upb/util/def_to_proto.h"
#include <inttypes.h>
#include <setjmp.h>
#include <stdio.h>
#include "upb/reflection.h"
#include "upb/port_def.inc"
Go to the source code of this file.
|
static upb_StringView | default_bytes (upb_ToProto_Context *ctx, upb_StringView val) |
|
static upb_StringView | default_string (upb_ToProto_Context *ctx, const upb_FieldDef *f) |
|
static google_protobuf_EnumDescriptorProto * | enumdef_toproto (upb_ToProto_Context *ctx, const upb_EnumDef *e) |
|
static google_protobuf_EnumValueDescriptorProto * | enumvaldef_toproto (upb_ToProto_Context *ctx, const upb_EnumValueDef *e) |
|
static google_protobuf_DescriptorProto_ExtensionRange * | extrange_toproto (upb_ToProto_Context *ctx, const upb_ExtensionRange *e) |
|
static google_protobuf_FieldDescriptorProto * | fielddef_toproto (upb_ToProto_Context *ctx, const upb_FieldDef *f) |
|
static google_protobuf_FileDescriptorProto * | filedef_toproto (upb_ToProto_Context *ctx, const upb_FileDef *f) |
|
static google_protobuf_MethodDescriptorProto * | methoddef_toproto (upb_ToProto_Context *ctx, const upb_MethodDef *m) |
|
static google_protobuf_DescriptorProto * | msgdef_toproto (upb_ToProto_Context *ctx, const upb_MessageDef *m) |
|
static google_protobuf_OneofDescriptorProto * | oneofdef_toproto (upb_ToProto_Context *ctx, const upb_OneofDef *o) |
|
static upb_StringView | printf_dup (upb_ToProto_Context *ctx, const char *fmt,...) |
|
static upb_StringView | qual_dup (upb_ToProto_Context *ctx, const char *s) |
|
static google_protobuf_ServiceDescriptorProto * | servicedef_toproto (upb_ToProto_Context *ctx, const upb_ServiceDef *s) |
|
static upb_StringView | strviewdup (upb_ToProto_Context *ctx, const char *s) |
|
static upb_StringView | strviewdup2 (upb_ToProto_Context *ctx, upb_StringView str) |
|
google_protobuf_EnumDescriptorProto * | upb_EnumDef_ToProto (const upb_EnumDef *e, upb_Arena *a) |
|
google_protobuf_EnumValueDescriptorProto * | upb_EnumValueDef_ToProto (const upb_EnumValueDef *e, upb_Arena *a) |
|
google_protobuf_FieldDescriptorProto * | upb_FieldDef_ToProto (const upb_FieldDef *f, upb_Arena *a) |
|
google_protobuf_FileDescriptorProto * | upb_FileDef_ToProto (const upb_FileDef *f, upb_Arena *a) |
|
static bool | upb_isprint (char ch) |
|
google_protobuf_DescriptorProto * | upb_MessageDef_ToProto (const upb_MessageDef *m, upb_Arena *a) |
|
google_protobuf_MethodDescriptorProto * | upb_MethodDef_ToProto (const upb_MethodDef *m, upb_Arena *a) |
|
google_protobuf_OneofDescriptorProto * | upb_OneofDef_ToProto (const upb_OneofDef *o, upb_Arena *a) |
|
google_protobuf_ServiceDescriptorProto * | upb_ServiceDef_ToProto (const upb_ServiceDef *s, upb_Arena *a) |
|
◆ CHK_OOM
◆ SET_OPTIONS
#define SET_OPTIONS |
( |
|
proto, |
|
|
|
desc_type, |
|
|
|
options_type, |
|
|
|
src |
|
) |
| |
Value: { \
\
char* pb = \
google_protobuf_##options_type##_serialize(src,
ctx->
arena, &
size); \
CHK_OOM(pb); \
google_protobuf_##options_type*
dst = \
google_protobuf_##options_type##_parse(pb,
size,
ctx->
arena); \
google_protobuf_##desc_type##_set_options(proto,
dst); \
}
Definition at line 49 of file def_to_proto.c.
◆ default_bytes()
◆ default_string()
◆ enumdef_toproto()
◆ enumvaldef_toproto()
◆ extrange_toproto()
◆ fielddef_toproto()
◆ filedef_toproto()
◆ methoddef_toproto()
◆ msgdef_toproto()
◆ oneofdef_toproto()
◆ printf_dup()
◆ qual_dup()
◆ servicedef_toproto()
◆ strviewdup()
◆ strviewdup2()
◆ upb_EnumDef_ToProto()
◆ upb_EnumValueDef_ToProto()
◆ upb_FieldDef_ToProto()
◆ upb_FileDef_ToProto()
◆ upb_isprint()
static bool upb_isprint |
( |
char |
ch | ) |
|
|
static |
◆ upb_MessageDef_ToProto()
◆ upb_MethodDef_ToProto()
◆ upb_OneofDef_ToProto()
◆ upb_ServiceDef_ToProto()