File indexing completed on 2025-01-18 10:13:18
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef UPB_MINI_TABLE_MESSAGE_H_
0009 #define UPB_MINI_TABLE_MESSAGE_H_
0010
0011 #include "upb/mini_table/enum.h"
0012 #include "upb/mini_table/field.h"
0013 #include "upb/mini_table/internal/message.h"
0014
0015
0016 #include "upb/port/def.inc"
0017
0018 typedef struct upb_MiniTable upb_MiniTable;
0019
0020 #ifdef __cplusplus
0021 extern "C" {
0022 #endif
0023
0024 UPB_API const upb_MiniTableField* upb_MiniTable_FindFieldByNumber(
0025 const upb_MiniTable* m, uint32_t number);
0026
0027 UPB_API_INLINE const upb_MiniTableField* upb_MiniTable_GetFieldByIndex(
0028 const upb_MiniTable* m, uint32_t index);
0029
0030 UPB_API_INLINE int upb_MiniTable_FieldCount(const upb_MiniTable* m);
0031
0032
0033
0034 UPB_API_INLINE const upb_MiniTable* upb_MiniTable_GetSubMessageTable(
0035 const upb_MiniTable* m, const upb_MiniTableField* f);
0036
0037
0038
0039
0040
0041
0042
0043
0044 UPB_API_INLINE const upb_MiniTable* upb_MiniTable_SubMessage(
0045 const upb_MiniTable* m, const upb_MiniTableField* f);
0046
0047
0048 UPB_API_INLINE const upb_MiniTable* upb_MiniTable_MapEntrySubMessage(
0049 const upb_MiniTable* m, const upb_MiniTableField* f);
0050
0051
0052 UPB_API_INLINE const upb_MiniTableEnum* upb_MiniTable_GetSubEnumTable(
0053 const upb_MiniTable* m, const upb_MiniTableField* f);
0054
0055
0056 UPB_API_INLINE const upb_MiniTableField* upb_MiniTable_MapKey(
0057 const upb_MiniTable* m);
0058
0059
0060 UPB_API_INLINE const upb_MiniTableField* upb_MiniTable_MapValue(
0061 const upb_MiniTable* m);
0062
0063
0064
0065 UPB_API_INLINE bool upb_MiniTable_FieldIsLinked(const upb_MiniTable* m,
0066 const upb_MiniTableField* f);
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078 const upb_MiniTableField* upb_MiniTable_GetOneof(const upb_MiniTable* m,
0079 const upb_MiniTableField* f);
0080
0081
0082
0083
0084
0085
0086 bool upb_MiniTable_NextOneofField(const upb_MiniTable* m,
0087 const upb_MiniTableField** f);
0088
0089 #ifdef __cplusplus
0090 }
0091 #endif
0092
0093 #include "upb/port/undef.inc"
0094
0095 #endif