Go to the documentation of this file.
33 #include "upb/port_def.inc"
37 static unsigned char sizes[] = {
100 return field->presence < 0;
121 }
else if (
field->presence > 0) {
207 if (!
ext)
return false;
213 if (
field->presence > 0) {
229 if (
field->presence > 0) {
233 if (*oneof_case !=
field->number)
return;
265 test.str_val.data = NULL;
268 if (memcmp(&
test, &zero,
sizeof(
test)) == 0)
continue;
290 memcpy(out_val, &
ext->data,
sizeof(*out_val));
308 if (--
depth == 0)
return false;
321 if (!val_m)
continue;
333 for (
i = 0;
i <
n;
i++) {
367 int lg2 = arr->
data & 7;
375 int lg2 = arr->
data & 7;
391 int lg2 = arr->
data & 7;
392 memmove(&
data[dst_idx << lg2], &
data[src_idx << lg2],
count << lg2);
399 size_t oldsize = arr->
len;
upb_Array * upb_Array_New(upb_Arena *a, upb_CType type)
upb_MessageValue upb_MapIterator_Key(const upb_Map *map, size_t iter)
UPB_INLINE bool _upb_Map_Delete(upb_Map *map, const void *key, size_t key_size)
UPB_INLINE void _upb_clearhas_field(const upb_msg *msg, const upb_msglayout_field *f)
void upb_Array_Delete(upb_Array *arr, size_t i, size_t count)
const upb_Message_Extension * _upb_Message_Getext(const upb_Message *msg, const upb_MiniTable_Extension *e)
bool upb_strtable_done(const upb_strtable_iter *i)
size_t upb_Map_Size(const upb_Map *map)
void upb_Message_Clear(upb_Message *msg, const upb_MessageDef *m)
return memset(p, 0, total)
bool upb_Array_Resize(upb_Array *arr, size_t size, upb_Arena *arena)
static size_t get_field_size(const upb_MiniTable_Field *f)
const upb_MiniTable * upb_MessageDef_MiniTable(const upb_MessageDef *m)
UPB_INLINE size_t _upb_Map_Size(const upb_Map *map)
const upb_FieldDef * upb_OneofDef_LookupNumber(const upb_OneofDef *o, uint32_t num)
UPB_INLINE void * _upb_map_next(const upb_map *map, size_t *iter)
void upb_Message_ClearField(upb_Message *msg, const upb_FieldDef *f)
UPB_INLINE void _upb_sethas_field(const upb_msg *msg, const upb_msglayout_field *f)
const upb_FieldDef * _upb_DefPool_FindExtensionByMiniTable(const upb_DefPool *s, const upb_MiniTable_Extension *ext)
upb_Message_Extension * _upb_Message_Getorcreateext(upb_Message *msg, const upb_MiniTable_Extension *e, upb_Arena *arena)
const upb_MiniTable_Field * upb_FieldDef_MiniTable(const upb_FieldDef *f)
#define kUpb_MapEntry_ValueFieldNumber
upb_MessageValue upb_Array_Get(const upb_Array *arr, size_t i)
UPB_INLINE bool _upb_Map_Set(upb_Map *map, const void *key, size_t key_size, void *val, size_t val_size, upb_Arena *a)
#define UPB_PTR_AT(msg, ofs, type)
UPB_INLINE uint32_t _upb_getoneofcase_field(const upb_msg *msg, const upb_msglayout_field *f)
const char * upb_strtable_iter_key(const upb_strtable_iter *i)
static bool in_oneof(const upb_MiniTable_Field *field)
void upb_Array_Move(upb_Array *arr, size_t dst_idx, size_t src_idx, size_t count)
grpc_core::ScopedArenaPtr arena
#define kUpb_MapEntry_KeyFieldNumber
const upb_Array * array_val
upb_Message * upb_Message_New(const upb_MessageDef *m, upb_Arena *a)
UPB_INLINE void * _upb_array_ptr(upb_array *arr)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
const upb_Message_Extension * _upb_Message_Getexts(const upb_Message *msg, size_t *count)
UPB_INLINE bool _upb_Map_Get(const upb_Map *map, const void *key, size_t key_size, void *val, size_t val_size)
upb_Message * _upb_Message_New(const upb_MiniTable *l, upb_Arena *a)
#define kUpb_Message_Begin
bool upb_FieldDef_IsMap(const upb_FieldDef *f)
bool upb_MapIterator_Next(const upb_Map *map, size_t *iter)
bool upb_FieldDef_HasPresence(const upb_FieldDef *f)
UPB_INLINE bool upb_IsRepeatedOrMap(const upb_MiniTable_Field *field)
static upb_MessageValue _upb_Message_Getraw(const upb_Message *msg, const upb_FieldDef *f)
void _upb_Message_DiscardUnknown_shallow(upb_Message *msg)
#define UPB_SIZE(size32, size64)
UPB_INLINE void _upb_map_fromvalue(upb_value val, void *out, size_t size)
int upb_OneofDef_FieldCount(const upb_OneofDef *o)
bool _upb_Message_DiscardUnknown(upb_Message *msg, const upb_MessageDef *m, int depth)
bool upb_Message_DiscardUnknown(upb_Message *msg, const upb_MessageDef *m, int maxdepth)
UPB_INLINE void _upb_Map_Clear(upb_Map *map)
upb_MessageValue upb_FieldDef_Default(const upb_FieldDef *f)
bool upb_FieldDef_IsExtension(const upb_FieldDef *f)
bool upb_Message_Next(const upb_Message *msg, const upb_MessageDef *m, const upb_DefPool *ext_pool, const upb_FieldDef **out_f, upb_MessageValue *out_val, size_t *iter)
upb_Map * _upb_Map_New(upb_Arena *a, size_t key_size, size_t value_size)
const upb_Message * msg_val
bool upb_Array_Append(upb_Array *arr, upb_MessageValue val, upb_Arena *arena)
upb_CType upb_FieldDef_CType(const upb_FieldDef *f)
const upb_MessageDef * upb_FieldDef_MessageSubDef(const upb_FieldDef *f)
UPB_INLINE bool _upb_hasbit_field(const upb_msg *msg, const upb_msglayout_field *f)
bool upb_Map_Set(upb_Map *map, upb_MessageValue key, upb_MessageValue val, upb_Arena *arena)
static char _upb_CTypeo_mapsize[12]
size_t upb_Array_Size(const upb_Array *arr)
bool upb_Message_Has(const upb_Message *msg, const upb_FieldDef *f)
void upb_Array_Set(upb_Array *arr, size_t i, upb_MessageValue val)
bool upb_OneofDef_IsSynthetic(const upb_OneofDef *o)
const FieldDescriptor * field
bool upb_Map_Delete(upb_Map *map, upb_MessageValue key)
const upb_FieldDef * upb_OneofDef_Field(const upb_OneofDef *o, int i)
upb_MutableMessageValue upb_Message_Mutable(upb_Message *msg, const upb_FieldDef *f, upb_Arena *a)
upb_MessageValue upb_Message_Get(const upb_Message *msg, const upb_FieldDef *f)
bool upb_FieldDef_IsRepeated(const upb_FieldDef *f)
const upb_FieldDef * upb_Message_WhichOneof(const upb_Message *msg, const upb_OneofDef *o)
UniquePtr< SSL_SESSION > ret
bool upb_FieldDef_IsString(const upb_FieldDef *f)
void _upb_Message_Clearext(upb_Message *msg, const upb_MiniTable_Extension *ext_l)
UPB_INLINE bool _upb_Array_Resize(upb_Array *arr, size_t size, upb_Arena *arena)
UPB_INLINE upb_Array * _upb_Array_New(upb_Arena *a, size_t init_size, int elem_size_lg2)
static const char _upb_CTypeo_sizelg2[12]
upb_value upb_strtable_iter_value(const upb_strtable_iter *i)
const UPB_INLINE void * _upb_array_constptr(const upb_array *arr)
bool upb_Map_Get(const upb_Map *map, upb_MessageValue key, upb_MessageValue *val)
bool upb_FieldDef_IsSubMessage(const upb_FieldDef *f)
void _upb_Message_Clear(upb_Message *msg, const upb_MiniTable *l)
upb_Map * upb_Map_New(upb_Arena *a, upb_CType key_type, upb_CType value_type)
void upb_Map_Clear(upb_Map *map)
int upb_MessageDef_FieldCount(const upb_MessageDef *m)
const upb_FieldDef * upb_MessageDef_Field(const upb_MessageDef *m, int i)
bool upb_Message_Set(upb_Message *msg, const upb_FieldDef *f, upb_MessageValue val, upb_Arena *a)
UPB_INLINE void _upb_map_fromkey(upb_strview key, void *out, size_t size)
upb_MessageValue upb_MapIterator_Value(const upb_Map *map, size_t iter)
bool upb_Array_Insert(upb_Array *arr, size_t i, size_t count, upb_Arena *arena)
const upb_FieldDef * upb_MessageDef_FindFieldByNumber(const upb_MessageDef *m, uint32_t i)
if(p->owned &&p->wrapped !=NULL)
UPB_INLINE uint32_t * _upb_oneofcase_field(upb_msg *msg, const upb_msglayout_field *f)
bool upb_MapIterator_Done(const upb_Map *map, size_t iter)
const upb_MiniTable_Extension * _upb_FieldDef_ExtensionMiniTable(const upb_FieldDef *f)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:07