|
|
|
@ -4285,6 +4285,19 @@ UPB_API_INLINE struct upb_Message* upb_Message_GetExtensionMessage( |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Repeated
|
|
|
|
|
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray( |
|
|
|
|
const struct upb_Message* msg, const upb_MiniTableExtension* e) { |
|
|
|
|
UPB_ASSUME(UPB_PRIVATE(_upb_MiniTableField_GetRep)(&e->UPB_PRIVATE(field)) == |
|
|
|
|
kUpb_FieldRep_NativePointer); |
|
|
|
|
UPB_ASSUME(upb_MiniTableField_IsArray(&e->UPB_PRIVATE(field))); |
|
|
|
|
UPB_ASSUME(e->UPB_PRIVATE(field).presence == 0); |
|
|
|
|
upb_Array* ret; |
|
|
|
|
const upb_Array* default_val = NULL; |
|
|
|
|
_upb_Message_GetExtensionField(msg, e, &default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
} /* extern "C" */ |
|
|
|
|
#endif |
|
|
|
@ -4623,6 +4636,9 @@ UPB_API_INLINE upb_Message* upb_Message_GetExtensionMessage( |
|
|
|
|
const upb_Message* msg, const upb_MiniTableExtension* f, |
|
|
|
|
struct upb_Message* default_val); |
|
|
|
|
|
|
|
|
|
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray( |
|
|
|
|
const upb_Message* msg, const upb_MiniTableExtension* f); |
|
|
|
|
|
|
|
|
|
// Extension Setters ///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg, |
|
|
|
|