|
static const upb_FileDef * | _upb_DefPool_AddFile (upb_DefPool *s, const google_protobuf_FileDescriptorProto *file_proto, const upb_MiniTable_File *layout, upb_Status *status) |
|
upb_Arena * | _upb_DefPool_Arena (const upb_DefPool *s) |
|
size_t | _upb_DefPool_BytesLoaded (const upb_DefPool *s) |
|
const upb_FieldDef * | _upb_DefPool_FindExtensionByMiniTable (const upb_DefPool *s, const upb_MiniTable_Extension *ext) |
|
bool | _upb_DefPool_LoadDefInitEx (upb_DefPool *s, const _upb_DefPool_Init *init, bool rebuild_minitable) |
|
bool | _upb_DefPool_registerlayout (upb_DefPool *s, const char *filename, const upb_MiniTable_File *file) |
|
const upb_MiniTable_Extension * | _upb_FieldDef_ExtensionMiniTable (const upb_FieldDef *f) |
|
bool | _upb_FieldDef_IsProto3Optional (const upb_FieldDef *f) |
|
const int32_t * | _upb_FileDef_PublicDependencyIndexes (const upb_FileDef *f) |
|
const int32_t * | _upb_FileDef_WeakDependencyIndexes (const upb_FileDef *f) |
|
static void | assign_layout_indices (const upb_MessageDef *m, upb_MiniTable *l, upb_MiniTable_Field *fields) |
|
static void | assign_msg_wellknowntype (upb_MessageDef *m) |
|
static bool | between (int32_t x, int32_t low, int32_t high) |
|
static void | build_filedef (symtab_addctx *ctx, upb_FileDef *file, const google_protobuf_FileDescriptorProto *file_proto) |
|
static void | check_ident (symtab_addctx *ctx, upb_StringView name, bool full) |
|
int | cmp_fields (const void *p1, const void *p2) |
|
static int | compare_int32 (const void *a_ptr, const void *b_ptr) |
|
static int | count_bits_debug (uint64_t x) |
|
static int | count_exts_in_msg (const google_protobuf_DescriptorProto *msg_proto) |
|
static void | create_enumdef (symtab_addctx *ctx, const char *prefix, const google_protobuf_EnumDescriptorProto *enum_proto, const upb_MessageDef *containing_type, const upb_EnumDef *_e) |
|
upb_MiniTable_Enum * | create_enumlayout (symtab_addctx *ctx, const upb_EnumDef *e) |
|
static void | create_enumvaldef (symtab_addctx *ctx, const char *prefix, const google_protobuf_EnumValueDescriptorProto *val_proto, upb_EnumDef *e, int i) |
|
static void | create_fielddef (symtab_addctx *ctx, const char *prefix, upb_MessageDef *m, const google_protobuf_FieldDescriptorProto *field_proto, const upb_FieldDef *_f, bool is_extension) |
|
static void | create_msgdef (symtab_addctx *ctx, const char *prefix, const google_protobuf_DescriptorProto *msg_proto, const upb_MessageDef *containing_type, const upb_MessageDef *_m) |
|
static void | create_oneofdef (symtab_addctx *ctx, upb_MessageDef *m, const google_protobuf_OneofDescriptorProto *oneof_proto, const upb_OneofDef *_o) |
|
static void | create_service (symtab_addctx *ctx, const google_protobuf_ServiceDescriptorProto *svc_proto, const upb_ServiceDef *_s) |
|
static upb_deftype_t | deftype (upb_value v) |
|
static size_t | div_round_up (size_t n, size_t d) |
|
static int | field_number_cmp (const void *p1, const void *p2) |
|
uint32_t | field_rank (const upb_FieldDef *f) |
|
static void | fill_fieldlayout (upb_MiniTable_Field *field, const upb_FieldDef *f) |
|
static void | finalize_oneofs (symtab_addctx *ctx, upb_MessageDef *m) |
|
size_t | getjsonname (const char *name, char *buf, size_t len) |
|
static void | make_layout (symtab_addctx *ctx, const upb_MessageDef *m) |
|
static const char * | makefullname (symtab_addctx *ctx, const char *prefix, upb_StringView name) |
|
static char * | makejsonname (symtab_addctx *ctx, const char *name) |
|
static uint8_t | map_descriptortype (const upb_FieldDef *f) |
|
static void | msgdef_create_nested (symtab_addctx *ctx, const google_protobuf_DescriptorProto *msg_proto, upb_MessageDef *m) |
|
static str_t * | newstr (symtab_addctx *ctx, const char *data, size_t len) |
|
static upb_value | pack_def (const void *ptr, upb_deftype_t type) |
|
static void | parse_default (symtab_addctx *ctx, const char *str, size_t len, upb_FieldDef *f) |
|
static bool | remove_component (char *base, size_t *len) |
|
static void | remove_filedef (upb_DefPool *s, upb_FileDef *file) |
|
static void | resolve_default (symtab_addctx *ctx, upb_FieldDef *f, const google_protobuf_FieldDescriptorProto *field_proto) |
|
static void | resolve_extension (symtab_addctx *ctx, const char *prefix, upb_FieldDef *f, const google_protobuf_FieldDescriptorProto *field_proto) |
|
static void | resolve_fielddef (symtab_addctx *ctx, const char *prefix, upb_FieldDef *f) |
|
static void | resolve_msgdef (symtab_addctx *ctx, upb_MessageDef *m) |
|
static void | resolve_subdef (symtab_addctx *ctx, const char *prefix, upb_FieldDef *f) |
|
static void | set_default_default (symtab_addctx *ctx, upb_FieldDef *f) |
|
static const char * | shortdefname (const char *fullname) |
|
static bool | streql2 (const char *a, size_t n, const char *b) |
|
static bool | streql_view (upb_StringView view, const char *b) |
|
static char * | strviewdup (symtab_addctx *ctx, upb_StringView view) |
|
static void | symtab_add (symtab_addctx *ctx, const char *name, upb_value v) |
|
void * | symtab_alloc (symtab_addctx *ctx, size_t bytes) |
|
static const void * | symtab_lookup (const upb_DefPool *s, const char *sym, upb_deftype_t type) |
|
static const void * | symtab_lookup2 (const upb_DefPool *s, const char *sym, size_t size, upb_deftype_t type) |
|
UPB_NORETURN static UPB_NOINLINE void | symtab_oomerr (symtab_addctx *ctx) |
|
static const void * | symtab_resolve (symtab_addctx *ctx, const char *from_name_dbg, const char *base, upb_StringView sym, upb_deftype_t type) |
|
static const void * | symtab_resolveany (symtab_addctx *ctx, const char *from_name_dbg, const char *base, upb_StringView sym, upb_deftype_t *type) |
|
static str_t * | unescape (symtab_addctx *ctx, const upb_FieldDef *f, const char *data, size_t len) |
|
static const void * | unpack_def (upb_value v, upb_deftype_t type) |
|
static char | upb_ascii_lower (char ch) |
|
const upb_FileDef * | upb_DefPool_AddFile (upb_DefPool *s, const google_protobuf_FileDescriptorProto *file_proto, upb_Status *status) |
|
const upb_ExtensionRegistry * | upb_DefPool_ExtensionRegistry (const upb_DefPool *s) |
|
const upb_EnumDef * | upb_DefPool_FindEnumByName (const upb_DefPool *s, const char *sym) |
|
const upb_EnumValueDef * | upb_DefPool_FindEnumByNameval (const upb_DefPool *s, const char *sym) |
|
const upb_FieldDef * | upb_DefPool_FindExtensionByName (const upb_DefPool *s, const char *sym) |
|
const upb_FieldDef * | upb_DefPool_FindExtensionByNameWithSize (const upb_DefPool *s, const char *name, size_t size) |
|
const upb_FieldDef * | upb_DefPool_FindExtensionByNumber (const upb_DefPool *s, const upb_MessageDef *m, int32_t fieldnum) |
|
const upb_FileDef * | upb_DefPool_FindFileByName (const upb_DefPool *s, const char *name) |
|
const upb_FileDef * | upb_DefPool_FindFileByNameWithSize (const upb_DefPool *s, const char *name, size_t len) |
|
const upb_FileDef * | upb_DefPool_FindFileContainingSymbol (const upb_DefPool *s, const char *name) |
|
const upb_MessageDef * | upb_DefPool_FindMessageByName (const upb_DefPool *s, const char *sym) |
|
const upb_MessageDef * | upb_DefPool_FindMessageByNameWithSize (const upb_DefPool *s, const char *sym, size_t len) |
|
const upb_ServiceDef * | upb_DefPool_FindServiceByName (const upb_DefPool *s, const char *name) |
|
const upb_ServiceDef * | upb_DefPool_FindServiceByNameWithSize (const upb_DefPool *s, const char *name, size_t size) |
|
void | upb_DefPool_Free (upb_DefPool *s) |
|
const upb_FieldDef ** | upb_DefPool_GetAllExtensions (const upb_DefPool *s, const upb_MessageDef *m, size_t *count) |
|
upb_DefPool * | upb_DefPool_New (void) |
|
static char | upb_DefPool_ParseEscape (symtab_addctx *ctx, const upb_FieldDef *f, const char **src, const char *end) |
|
static char | upb_DefPool_ParseHexEscape (symtab_addctx *ctx, const upb_FieldDef *f, const char **src, const char *end) |
|
static char | upb_DefPool_ParseOctalEscape (symtab_addctx *ctx, const upb_FieldDef *f, const char **src, const char *end) |
|
static bool | upb_DefPool_TryGetChar (const char **src, const char *end, char *ch) |
|
static char | upb_DefPool_TryGetHexDigit (symtab_addctx *ctx, const upb_FieldDef *f, const char **src, const char *end) |
|
char | upb_DefPool_TryGetOctalDigit (const char **src, const char *end) |
|
bool | upb_EnumDef_CheckNumber (const upb_EnumDef *e, int32_t num) |
|
const upb_MessageDef * | upb_EnumDef_ContainingType (const upb_EnumDef *e) |
|
int32_t | upb_EnumDef_Default (const upb_EnumDef *e) |
|
const upb_FileDef * | upb_EnumDef_File (const upb_EnumDef *e) |
|
const upb_EnumValueDef * | upb_EnumDef_FindValueByNameWithSize (const upb_EnumDef *def, const char *name, size_t len) |
|
const upb_EnumValueDef * | upb_EnumDef_FindValueByNumber (const upb_EnumDef *def, int32_t num) |
|
const char * | upb_EnumDef_FullName (const upb_EnumDef *e) |
|
bool | upb_EnumDef_HasOptions (const upb_EnumDef *e) |
|
const char * | upb_EnumDef_Name (const upb_EnumDef *e) |
|
const google_protobuf_EnumOptions * | upb_EnumDef_Options (const upb_EnumDef *e) |
|
const upb_EnumValueDef * | upb_EnumDef_Value (const upb_EnumDef *e, int i) |
|
int | upb_EnumDef_ValueCount (const upb_EnumDef *e) |
|
const upb_EnumDef * | upb_EnumValueDef_Enum (const upb_EnumValueDef *ev) |
|
const char * | upb_EnumValueDef_FullName (const upb_EnumValueDef *ev) |
|
bool | upb_EnumValueDef_HasOptions (const upb_EnumValueDef *e) |
|
uint32_t | upb_EnumValueDef_Index (const upb_EnumValueDef *ev) |
|
const char * | upb_EnumValueDef_Name (const upb_EnumValueDef *ev) |
|
int32_t | upb_EnumValueDef_Number (const upb_EnumValueDef *ev) |
|
const google_protobuf_EnumValueOptions * | upb_EnumValueDef_Options (const upb_EnumValueDef *e) |
|
int32_t | upb_ExtensionRange_End (const upb_ExtensionRange *e) |
|
bool | upb_ExtensionRange_HasOptions (const upb_ExtensionRange *r) |
|
const google_protobuf_ExtensionRangeOptions * | upb_ExtensionRange_Options (const upb_ExtensionRange *r) |
|
int32_t | upb_ExtensionRange_Start (const upb_ExtensionRange *e) |
|
bool | upb_FieldDef_checkdescriptortype (int32_t type) |
|
bool | upb_FieldDef_checkintfmt (int32_t fmt) |
|
bool | upb_FieldDef_checklabel (int32_t label) |
|
bool | upb_FieldDef_checktype (int32_t type) |
|
const upb_OneofDef * | upb_FieldDef_ContainingOneof (const upb_FieldDef *f) |
|
const upb_MessageDef * | upb_FieldDef_ContainingType (const upb_FieldDef *f) |
|
upb_CType | upb_FieldDef_CType (const upb_FieldDef *f) |
|
upb_MessageValue | upb_FieldDef_Default (const upb_FieldDef *f) |
|
const upb_EnumDef * | upb_FieldDef_EnumSubDef (const upb_FieldDef *f) |
|
const upb_MessageDef * | upb_FieldDef_ExtensionScope (const upb_FieldDef *f) |
|
const upb_FileDef * | upb_FieldDef_File (const upb_FieldDef *f) |
|
const char * | upb_FieldDef_FullName (const upb_FieldDef *f) |
|
bool | upb_FieldDef_HasDefault (const upb_FieldDef *f) |
|
bool | upb_FieldDef_HasJsonName (const upb_FieldDef *f) |
|
bool | upb_FieldDef_HasOptions (const upb_FieldDef *f) |
|
bool | upb_FieldDef_HasPresence (const upb_FieldDef *f) |
|
bool | upb_FieldDef_HasSubDef (const upb_FieldDef *f) |
|
uint32_t | upb_FieldDef_Index (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsExtension (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsMap (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsPacked (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsPrimitive (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsRepeated (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsString (const upb_FieldDef *f) |
|
bool | upb_FieldDef_IsSubMessage (const upb_FieldDef *f) |
|
const char * | upb_FieldDef_JsonName (const upb_FieldDef *f) |
|
upb_Label | upb_FieldDef_Label (const upb_FieldDef *f) |
|
const upb_MessageDef * | upb_FieldDef_MessageSubDef (const upb_FieldDef *f) |
|
const upb_MiniTable_Field * | upb_FieldDef_MiniTable (const upb_FieldDef *f) |
|
const char * | upb_FieldDef_Name (const upb_FieldDef *f) |
|
uint32_t | upb_FieldDef_Number (const upb_FieldDef *f) |
|
const google_protobuf_FieldOptions * | upb_FieldDef_Options (const upb_FieldDef *f) |
|
const upb_OneofDef * | upb_FieldDef_RealContainingOneof (const upb_FieldDef *f) |
|
upb_FieldType | upb_FieldDef_Type (const upb_FieldDef *f) |
|
const upb_FileDef * | upb_FileDef_Dependency (const upb_FileDef *f, int i) |
|
int | upb_FileDef_DependencyCount (const upb_FileDef *f) |
|
bool | upb_FileDef_HasOptions (const upb_FileDef *f) |
|
const char * | upb_FileDef_Name (const upb_FileDef *f) |
|
const google_protobuf_FileOptions * | upb_FileDef_Options (const upb_FileDef *f) |
|
const char * | upb_FileDef_Package (const upb_FileDef *f) |
|
const upb_DefPool * | upb_FileDef_Pool (const upb_FileDef *f) |
|
const upb_FileDef * | upb_FileDef_PublicDependency (const upb_FileDef *f, int i) |
|
int | upb_FileDef_PublicDependencyCount (const upb_FileDef *f) |
|
const upb_ServiceDef * | upb_FileDef_Service (const upb_FileDef *f, int i) |
|
int | upb_FileDef_ServiceCount (const upb_FileDef *f) |
|
upb_Syntax | upb_FileDef_Syntax (const upb_FileDef *f) |
|
const upb_EnumDef * | upb_FileDef_TopLevelEnum (const upb_FileDef *f, int i) |
|
int | upb_FileDef_TopLevelEnumCount (const upb_FileDef *f) |
|
const upb_FieldDef * | upb_FileDef_TopLevelExtension (const upb_FileDef *f, int i) |
|
int | upb_FileDef_TopLevelExtensionCount (const upb_FileDef *f) |
|
const upb_MessageDef * | upb_FileDef_TopLevelMessage (const upb_FileDef *f, int i) |
|
int | upb_FileDef_TopLevelMessageCount (const upb_FileDef *f) |
|
const upb_FileDef * | upb_FileDef_WeakDependency (const upb_FileDef *f, int i) |
|
int | upb_FileDef_WeakDependencyCount (const upb_FileDef *f) |
|
static bool | upb_isalphanum (char c) |
|
static bool | upb_isbetween (uint8_t c, uint8_t low, uint8_t high) |
|
static bool | upb_isletter (char c) |
|
const upb_MessageDef * | upb_MessageDef_ContainingType (const upb_MessageDef *m) |
|
const upb_ExtensionRange * | upb_MessageDef_ExtensionRange (const upb_MessageDef *m, int i) |
|
int | upb_MessageDef_ExtensionRangeCount (const upb_MessageDef *m) |
|
const upb_FieldDef * | upb_MessageDef_Field (const upb_MessageDef *m, int i) |
|
int | upb_MessageDef_FieldCount (const upb_MessageDef *m) |
|
const upb_FileDef * | upb_MessageDef_File (const upb_MessageDef *m) |
|
const upb_FieldDef * | upb_MessageDef_FindByJsonNameWithSize (const upb_MessageDef *m, const char *name, size_t len) |
|
bool | upb_MessageDef_FindByNameWithSize (const upb_MessageDef *m, const char *name, size_t len, const upb_FieldDef **out_f, const upb_OneofDef **out_o) |
|
const upb_FieldDef * | upb_MessageDef_FindFieldByNameWithSize (const upb_MessageDef *m, const char *name, size_t len) |
|
const upb_FieldDef * | upb_MessageDef_FindFieldByNumber (const upb_MessageDef *m, uint32_t i) |
|
const upb_OneofDef * | upb_MessageDef_FindOneofByNameWithSize (const upb_MessageDef *m, const char *name, size_t len) |
|
const char * | upb_MessageDef_FullName (const upb_MessageDef *m) |
|
bool | upb_MessageDef_HasOptions (const upb_MessageDef *m) |
|
const upb_MiniTable * | upb_MessageDef_MiniTable (const upb_MessageDef *m) |
|
const char * | upb_MessageDef_Name (const upb_MessageDef *m) |
|
const upb_EnumDef * | upb_MessageDef_NestedEnum (const upb_MessageDef *m, int i) |
|
int | upb_MessageDef_NestedEnumCount (const upb_MessageDef *m) |
|
const upb_FieldDef * | upb_MessageDef_NestedExtension (const upb_MessageDef *m, int i) |
|
int | upb_MessageDef_NestedExtensionCount (const upb_MessageDef *m) |
|
const upb_MessageDef * | upb_MessageDef_NestedMessage (const upb_MessageDef *m, int i) |
|
int | upb_MessageDef_NestedMessageCount (const upb_MessageDef *m) |
|
int | upb_MessageDef_numfields (const upb_MessageDef *m) |
|
int | upb_MessageDef_numoneofs (const upb_MessageDef *m) |
|
int | upb_MessageDef_numrealoneofs (const upb_MessageDef *m) |
|
const upb_OneofDef * | upb_MessageDef_Oneof (const upb_MessageDef *m, int i) |
|
int | upb_MessageDef_OneofCount (const upb_MessageDef *m) |
|
const google_protobuf_MessageOptions * | upb_MessageDef_Options (const upb_MessageDef *m) |
|
int | upb_MessageDef_realoneofcount (const upb_MessageDef *m) |
|
upb_Syntax | upb_MessageDef_Syntax (const upb_MessageDef *m) |
|
upb_WellKnown | upb_MessageDef_WellKnownType (const upb_MessageDef *m) |
|
static size_t | upb_MessageValue_sizeof (upb_CType type) |
|
bool | upb_MethodDef_ClientStreaming (const upb_MethodDef *m) |
|
const char * | upb_MethodDef_FullName (const upb_MethodDef *m) |
|
bool | upb_MethodDef_HasOptions (const upb_MethodDef *m) |
|
int | upb_MethodDef_Index (const upb_MethodDef *m) |
|
const upb_MessageDef * | upb_MethodDef_InputType (const upb_MethodDef *m) |
|
const char * | upb_MethodDef_Name (const upb_MethodDef *m) |
|
const google_protobuf_MethodOptions * | upb_MethodDef_Options (const upb_MethodDef *m) |
|
const upb_MessageDef * | upb_MethodDef_OutputType (const upb_MethodDef *m) |
|
bool | upb_MethodDef_ServerStreaming (const upb_MethodDef *m) |
|
const upb_ServiceDef * | upb_MethodDef_Service (const upb_MethodDef *m) |
|
static uint32_t | upb_MiniTable_place (symtab_addctx *ctx, upb_MiniTable *l, size_t size, const upb_MessageDef *m) |
|
static uint8_t | upb_msg_fielddefsize (const upb_FieldDef *f) |
|
const upb_MessageDef * | upb_OneofDef_ContainingType (const upb_OneofDef *o) |
|
const upb_FieldDef * | upb_OneofDef_Field (const upb_OneofDef *o, int i) |
|
int | upb_OneofDef_FieldCount (const upb_OneofDef *o) |
|
bool | upb_OneofDef_HasOptions (const upb_OneofDef *o) |
|
uint32_t | upb_OneofDef_Index (const upb_OneofDef *o) |
|
bool | upb_OneofDef_IsSynthetic (const upb_OneofDef *o) |
|
const upb_FieldDef * | upb_OneofDef_LookupNameWithSize (const upb_OneofDef *o, const char *name, size_t length) |
|
const upb_FieldDef * | upb_OneofDef_LookupNumber (const upb_OneofDef *o, uint32_t num) |
|
const char * | upb_OneofDef_Name (const upb_OneofDef *o) |
|
int | upb_OneofDef_numfields (const upb_OneofDef *o) |
|
const google_protobuf_OneofOptions * | upb_OneofDef_Options (const upb_OneofDef *o) |
|
UPB_NORETURN UPB_NOINLINE | UPB_PRINTF (2, 3) |
|
const upb_FileDef * | upb_ServiceDef_File (const upb_ServiceDef *s) |
|
const upb_MethodDef * | upb_ServiceDef_FindMethodByName (const upb_ServiceDef *s, const char *name) |
|
const char * | upb_ServiceDef_FullName (const upb_ServiceDef *s) |
|
bool | upb_ServiceDef_HasOptions (const upb_ServiceDef *s) |
|
int | upb_ServiceDef_Index (const upb_ServiceDef *s) |
|
const upb_MethodDef * | upb_ServiceDef_Method (const upb_ServiceDef *s, int i) |
|
int | upb_ServiceDef_MethodCount (const upb_ServiceDef *s) |
|
const char * | upb_ServiceDef_Name (const upb_ServiceDef *s) |
|
const google_protobuf_ServiceOptions * | upb_ServiceDef_Options (const upb_ServiceDef *s) |
|
static void | upb_Status_setoom (upb_Status *status) |
|