/third_party/protobuf/src/google/protobuf/ |
D | generated_message_table_driven_lite.h | 139 inline void SetOneofField(MessageLite* msg, uint32* oneof_case, in SetOneofField() argument 142 oneof_case[oneof_case_index] = field_number; in SetOneofField() 182 Arena* arena, MessageLite* msg, uint32* oneof_case, in ResetOneofField() argument 184 if (*oneof_case == field_number) { in ResetOneofField() 190 if (*oneof_case != 0) { in ResetOneofField() 191 ClearOneofField(table.fields[*oneof_case], arena, msg); in ResetOneofField() 193 *oneof_case = field_number; in ResetOneofField() 436 uint32* oneof_case = Raw<uint32>(msg, table.oneof_case_offset); \ in MergePartialFromCodedStreamInlined() 443 ClearOneofField(table.fields[oneof_case[presence_index]], msg->GetArena(), \ in MergePartialFromCodedStreamInlined() 445 SetOneofField(msg, oneof_case, presence_index, offset, field_number, \ in MergePartialFromCodedStreamInlined() [all …]
|
D | generated_message_reflection.cc | 2109 uint32 oneof_case = GetOneofCase(*message, oneof_descriptor); in ClearOneof() local 2110 if (oneof_case > 0) { in ClearOneof() 2111 const FieldDescriptor* field = descriptor_->FindFieldByNumber(oneof_case); in ClearOneof()
|
/third_party/grpc/third_party/upb/upb/ |
D | reflection.c | 105 uint32_t oneof_case = _upb_getoneofcase_field(msg, field); in upb_msg_whichoneof() local 106 f = oneof_case ? upb_oneofdef_itof(o, oneof_case) : NULL; in upb_msg_whichoneof() 107 UPB_ASSERT((f != NULL) == (oneof_case != 0)); in upb_msg_whichoneof() 207 uint32_t *oneof_case = _upb_oneofcase_field(msg, field); in upb_msg_clearfield() local 208 if (*oneof_case != field->number) return; in upb_msg_clearfield() 209 *oneof_case = 0; in upb_msg_clearfield()
|
D | decode.c | 482 uint32_t *oneof_case = _upb_oneofcase_field(msg, field); in decode_tomsg() local 483 if (op == OP_SUBMSG && *oneof_case != field->number) { in decode_tomsg() 486 *oneof_case = field->number; in decode_tomsg()
|
D | decode_fast.c | 266 uint32_t *oneof_case = UPB_PTR_AT(msg, case_ofs, uint32_t); in fastdecode_getfield() local 268 *oneof_case = field_number; in fastdecode_getfield()
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
D | storage.c | 769 uint32_t oneof_case = slot_read_oneof_case(layout, storage, oneof); in layout_has() local 770 return oneof_case == upb_fielddef_number(field) ? Qtrue : Qfalse; in layout_has() 787 uint32_t* oneof_case = slot_oneof_case(layout, storage, oneof); in layout_clear() local 789 *oneof_case = ONEOF_CASE_NONE; in layout_clear() 882 uint32_t oneof_case = slot_read_oneof_case(layout, storage, oneof); in layout_get() local 883 if (oneof_case != upb_fielddef_number(field)) { in layout_get() 949 uint32_t* oneof_case = slot_oneof_case(layout, storage, oneof); in layout_set() local 952 *oneof_case = ONEOF_CASE_NONE; in layout_set() 974 field_type_class(layout, field), memory, val, oneof_case, case_value); in layout_set()
|
D | message.c | 82 uint32_t oneof_case; in which_oneof_field() local 85 oneof_case = in which_oneof_field() 88 if (oneof_case == ONEOF_CASE_NONE) { in which_oneof_field() 93 f = upb_oneofdef_itof(o, oneof_case); in which_oneof_field()
|
D | encode_decode.c | 1516 uint32_t oneof_case = in putmsg() local 1520 if (oneof_case != upb_fielddef_number(f)) { in putmsg() 1723 uint32_t oneof_case = in discard_unknown() local 1727 if (oneof_case != upb_fielddef_number(f)) { in discard_unknown()
|
/third_party/protobuf/php/ext/google/protobuf/ |
D | php-upb.c | 628 uint32_t *oneof_case = _upb_oneofcase_field(msg, field); in decode_tomsg() local 629 if (op == OP_SUBMSG && *oneof_case != field->number) { in decode_tomsg() 632 *oneof_case = field->number; in decode_tomsg() 5661 uint32_t oneof_case; in upb_msg_whichoneof() local 5669 oneof_case = _upb_getoneofcase_field(msg, field); in upb_msg_whichoneof() 5674 return oneof_case ? upb_msgdef_itof(m, oneof_case) : NULL; in upb_msg_whichoneof() 5772 uint32_t *oneof_case = _upb_oneofcase_field(msg, field); in upb_msg_clearfield() local 5773 if (*oneof_case != field->number) return; in upb_msg_clearfield() 5774 *oneof_case = 0; in upb_msg_clearfield()
|