Go to the documentation of this file.
56 #include "upb/port_def.inc"
82 #define FUNCS(name, membername, type_t, converter, proto_type) \
83 UPB_INLINE void upb_value_set##name(upb_value* val, type_t cval) { \
84 val->val = (converter)cval; \
86 UPB_INLINE upb_value upb_value_##name(type_t val) { \
88 upb_value_set##name(&ret, val); \
91 UPB_INLINE type_t upb_value_get##name(upb_value val) { \
92 return (type_t)(converter)val.val; \
142 return mem +
sizeof(*len);
159 #define UPB_TABVALUE_EMPTY_INIT \
195 if (t->size_lg2 == 0)
198 return 1 << t->size_lg2;
277 #define UPB_INTTABLE_BEGIN -1
293 #define UPB_STRTABLE_BEGIN -1
365 return &
i->t->t.entries[
i->index];
383 #include "upb/port_undef.inc"
void upb_strtable_begin(upb_strtable_iter *i, const upb_strtable *t)
bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_Arena *a)
bool upb_strtable_lookup2(const upb_strtable *t, const char *key, size_t len, upb_value *v)
bool upb_strtable_insert(upb_strtable *t, const char *key, size_t len, upb_value val, upb_Arena *a)
struct _upb_tabent upb_tabent
bool upb_inttable_next2(const upb_inttable *t, uintptr_t *key, upb_value *val, intptr_t *iter)
void upb_strtable_iter_setdone(upb_strtable_iter *i)
static const uint8_t seed[20]
char * upb_strdup2(const char *s, size_t len, upb_Arena *a)
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern array
bool upb_strtable_next2(const upb_strtable *t, upb_StringView *key, upb_value *val, intptr_t *iter)
const UPB_INLINE upb_tabent * str_tabent(const upb_strtable_iter *i)
UPB_INLINE bool upb_strtable_lookup(const upb_strtable *t, const char *key, upb_value *v)
#define FUNCS(name, membername, type_t, converter, proto_type)
void upb_inttable_begin(upb_inttable_iter *i, const upb_inttable *t)
bool upb_strtable_iter_isequal(const upb_strtable_iter *i1, const upb_strtable_iter *i2)
UPB_INLINE bool upb_strtable_remove(upb_strtable *t, const char *key, upb_value *v)
bool upb_strtable_remove2(upb_strtable *t, const char *key, size_t len, upb_value *val)
UPB_INLINE bool upb_tabent_isempty(const upb_tabent *e)
void upb_inttable_next(upb_inttable_iter *i)
void upb_strtable_next(upb_strtable_iter *i)
void upb_strtable_clear(upb_strtable *t)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
UPB_INLINE size_t upb_table_size(const upb_table *t)
bool upb_inttable_remove(upb_inttable *t, uintptr_t key, upb_value *val)
bool upb_strtable_init(upb_strtable *table, size_t expected_size, upb_Arena *a)
bool upb_inttable_lookup(const upb_inttable *t, uintptr_t key, upb_value *v)
unsigned __int64 uint64_t
UPB_INLINE char * upb_tabstr(upb_tabkey key, uint32_t *len)
UPB_INLINE void _upb_value_setval(upb_value *v, uint64_t val)
bool upb_inttable_iter_isequal(const upb_inttable_iter *i1, const upb_inttable_iter *i2)
void upb_inttable_removeiter(upb_inttable *t, intptr_t *iter)
_W64 unsigned int uintptr_t
size_t upb_inttable_count(const upb_inttable *t)
UPB_INLINE upb_StringView upb_tabstrview(upb_tabkey key)
upb_value upb_inttable_iter_value(const upb_inttable_iter *i)
bool upb_inttable_insert(upb_inttable *t, uintptr_t key, upb_value val, upb_Arena *a)
void upb_inttable_compact(upb_inttable *t, upb_Arena *a)
const struct _upb_tabent * next
UPB_INLINE size_t upb_strtable_count(const upb_strtable *t)
uint32_t _upb_Hash(const void *p, size_t n, uint64_t seed)
UniquePtr< SSL_SESSION > ret
UPB_INLINE upb_value upb_value_double(double cval)
upb_value upb_strtable_iter_value(const upb_strtable_iter *i)
void upb_inttable_iter_setdone(upb_inttable_iter *i)
upb_StringView upb_strtable_iter_key(const upb_strtable_iter *i)
UPB_INLINE upb_value upb_value_float(float cval)
uintptr_t upb_inttable_iter_key(const upb_inttable_iter *i)
void upb_strtable_removeiter(upb_strtable *t, intptr_t *iter)
struct upb_tabval upb_tabval
bool upb_inttable_replace(upb_inttable *t, uintptr_t key, upb_value val)
bool upb_strtable_done(const upb_strtable_iter *i)
UPB_INLINE void upb_value_setdouble(upb_value *val, double cval)
bool upb_inttable_init(upb_inttable *table, upb_Arena *a)
bool upb_inttable_done(const upb_inttable_iter *i)
UPB_INLINE void upb_value_setfloat(upb_value *val, float cval)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:25