|
|
|
@ -46,6 +46,18 @@ UPB_API_INLINE const upb_MiniTableEnum* upb_MiniTable_GetSubEnumTable( |
|
|
|
|
return UPB_PRIVATE(_upb_MiniTable_GetSubEnumTable)(m, f); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Returns the MiniTableField for the key of a map.
|
|
|
|
|
UPB_API_INLINE const upb_MiniTableField* upb_MiniTable_MapKey( |
|
|
|
|
const upb_MiniTable* m) { |
|
|
|
|
return UPB_PRIVATE(_upb_MiniTable_MapKey)(m); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Returns the MiniTableField for the value of a map.
|
|
|
|
|
UPB_API_INLINE const upb_MiniTableField* upb_MiniTable_MapValue( |
|
|
|
|
const upb_MiniTable* m) { |
|
|
|
|
return UPB_PRIVATE(_upb_MiniTable_MapValue)(m); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Returns true if this MiniTable field is linked to a MiniTable for the
|
|
|
|
|
// sub-message.
|
|
|
|
|
UPB_API_INLINE bool upb_MiniTable_MessageFieldIsLinked( |
|
|
|
@ -53,13 +65,6 @@ UPB_API_INLINE bool upb_MiniTable_MessageFieldIsLinked( |
|
|
|
|
return UPB_PRIVATE(_upb_MiniTable_MessageFieldIsLinked)(m, f); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// TODO: Implement convenience getters for map entries:
|
|
|
|
|
//
|
|
|
|
|
// upb_MiniTable_GetMapKey()
|
|
|
|
|
// upb_MiniTable_GetMapValue()
|
|
|
|
|
// These could also assert that this is indeed a map entry (well, as best we
|
|
|
|
|
// can. We can assert that there are two fields with field numbers 1 and 2).
|
|
|
|
|
|
|
|
|
|
// If this field is in a oneof, returns the first field in the oneof.
|
|
|
|
|
//
|
|
|
|
|
// Otherwise returns NULL.
|
|
|
|
|