10#ifndef UPB_MESSAGE_INTERNAL_MAP_SORTER_H_
11#define UPB_MESSAGE_INTERNAL_MAP_SORTER_H_
62 if (sorted->
pos == sorted->
end)
return false;
64 if (
map->UPB_PRIVATE(is_strtable)) {
68 uintptr_t key = tabent->
key.
num;
69 memcpy(&ent->
k, &key,
map->key_size);
79 if (sorted->
pos == sorted->
end)
return false;
UPB_INLINE void upb_gfree(void *ptr)
Definition alloc.h:94
#define UPB_INLINE
Definition def.inc:144
upb_FieldType
Definition descriptor_constants.h:40
UPB_INLINE upb_StringView upb_key_strview(upb_key key)
Definition common.h:119
UPB_INLINE void _upb_map_fromvalue(upb_value val, void *out, size_t size)
Definition map.h:104
UPB_INLINE void _upb_map_fromkey(upb_StringView key, void *out, size_t size)
Definition map.h:83
UPB_INLINE void _upb_mapsorter_init(_upb_mapsorter *s)
Definition map_sorter.h:49
bool _upb_mapsorter_pushmap(_upb_mapsorter *s, upb_FieldType key_type, const struct upb_Map *map, _upb_sortedmap *sorted)
bool _upb_mapsorter_pushexts(_upb_mapsorter *s, const upb_Message_Internal *in, _upb_sortedmap *sorted)
UPB_INLINE bool _upb_sortedmap_nextext(_upb_mapsorter *s, _upb_sortedmap *sorted, const upb_Extension **ext)
Definition map_sorter.h:76
UPB_INLINE void _upb_mapsorter_popmap(_upb_mapsorter *s, _upb_sortedmap *sorted)
Definition map_sorter.h:84
UPB_INLINE void _upb_mapsorter_destroy(_upb_mapsorter *s)
Definition map_sorter.h:55
UPB_INLINE bool _upb_sortedmap_next(_upb_mapsorter *s, const struct upb_Map *map, _upb_sortedmap *sorted, upb_MapEntry *ent)
Definition map_sorter.h:59
Definition map_sorter.h:37
int size
Definition map_sorter.h:39
void const ** entries
Definition map_sorter.h:38
int cap
Definition map_sorter.h:40
Definition map_sorter.h:43
int end
Definition map_sorter.h:46
int pos
Definition map_sorter.h:45
int start
Definition map_sorter.h:44
upb_key key
Definition common.h:127
upb_value val
Definition common.h:126
Definition extension.h:32
Definition map_entry.h:24
union upb_MapEntry::@70 k
union upb_MapEntry::@71 v
Definition string_view.h:23
uint64_t val
Definition common.h:45
uintptr_t num
Definition common.h:115