1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2024 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef THIRD_PARTY_UPB_UPB_MESSAGE_INTERNAL_ITERATOR_H_ 9 #define THIRD_PARTY_UPB_UPB_MESSAGE_INTERNAL_ITERATOR_H_ 10 11 #include <stddef.h> 12 13 #include "upb/message/message.h" 14 #include "upb/message/value.h" 15 #include "upb/mini_table/extension.h" 16 #include "upb/mini_table/field.h" 17 #include "upb/mini_table/message.h" 18 19 // Must be last. 20 #include "upb/port/def.inc" 21 22 #define kUpb_BaseField_Begin ((size_t)-1) 23 #define kUpb_Extension_Begin ((size_t)-1) 24 25 bool UPB_PRIVATE(_upb_Message_NextBaseField)(const upb_Message* msg, 26 const upb_MiniTable* m, 27 const upb_MiniTableField** out_f, 28 upb_MessageValue* out_v, 29 size_t* iter); 30 31 bool UPB_PRIVATE(_upb_Message_NextExtension)( 32 const upb_Message* msg, const upb_MiniTable* m, 33 const upb_MiniTableExtension** out_e, upb_MessageValue* out_v, 34 size_t* iter); 35 #endif // THIRD_PARTY_UPB_UPB_MESSAGE_INTERNAL_ITERATOR_H_ 36