File indexing completed on 2025-01-18 10:13:18
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef UPB_MINI_TABLE_FIELD_H_
0009 #define UPB_MINI_TABLE_FIELD_H_
0010
0011 #include <stdint.h>
0012
0013 #include "upb/base/descriptor_constants.h"
0014 #include "upb/mini_table/internal/field.h"
0015
0016
0017 #include "upb/port/def.inc"
0018
0019 typedef struct upb_MiniTableField upb_MiniTableField;
0020
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024
0025 UPB_API_INLINE upb_CType upb_MiniTableField_CType(const upb_MiniTableField* f);
0026
0027 UPB_API_INLINE bool upb_MiniTableField_HasPresence(const upb_MiniTableField* f);
0028
0029 UPB_API_INLINE bool upb_MiniTableField_IsArray(const upb_MiniTableField* f);
0030
0031 UPB_API_INLINE bool upb_MiniTableField_IsClosedEnum(
0032 const upb_MiniTableField* f);
0033
0034 UPB_API_INLINE bool upb_MiniTableField_IsExtension(const upb_MiniTableField* f);
0035
0036 UPB_API_INLINE bool upb_MiniTableField_IsInOneof(const upb_MiniTableField* f);
0037
0038 UPB_API_INLINE bool upb_MiniTableField_IsMap(const upb_MiniTableField* f);
0039
0040 UPB_API_INLINE bool upb_MiniTableField_IsPacked(const upb_MiniTableField* f);
0041
0042 UPB_API_INLINE bool upb_MiniTableField_IsScalar(const upb_MiniTableField* f);
0043
0044 UPB_API_INLINE bool upb_MiniTableField_IsSubMessage(
0045 const upb_MiniTableField* f);
0046
0047 UPB_API_INLINE uint32_t upb_MiniTableField_Number(const upb_MiniTableField* f);
0048
0049 UPB_API_INLINE upb_FieldType
0050 upb_MiniTableField_Type(const upb_MiniTableField* f);
0051
0052 #ifdef __cplusplus
0053 }
0054 #endif
0055
0056 #include "upb/port/undef.inc"
0057
0058 #endif