|
|
|
@ -1017,6 +1017,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 |
|
|
|
|