implement upb_MiniTable_FindFieldByIndex()

PiperOrigin-RevId: 516651714
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent 05609bfac0
commit b7dcc1cf4c
  1. 5
      upb/mini_table/common.h

@ -56,6 +56,11 @@ extern "C" {
UPB_API const upb_MiniTableField* upb_MiniTable_FindFieldByNumber(
const upb_MiniTable* table, uint32_t number);
UPB_API_INLINE const upb_MiniTableField* upb_MiniTable_GetFieldByIndex(
const upb_MiniTable* t, uint32_t index) {
return &t->fields[index];
}
UPB_API upb_FieldType upb_MiniTableField_Type(const upb_MiniTableField* field);
UPB_API_INLINE upb_CType upb_MiniTableField_CType(const upb_MiniTableField* f) {

Loading…
Cancel
Save