/external/protobuf/src/google/protobuf/ |
D | generated_message_table_driven_lite.h | 150 inline void SetOneofField(MessageLite* msg, uint32* oneof_case, in SetOneofField() argument 153 oneof_case[oneof_case_index] = field_number; in SetOneofField() 193 Arena* arena, MessageLite* msg, uint32* oneof_case, in ResetOneofField() argument 195 if (*oneof_case == field_number) { in ResetOneofField() 201 if (*oneof_case != 0) { in ResetOneofField() 202 ClearOneofField(table.fields[*oneof_case], arena, msg); in ResetOneofField() 204 *oneof_case = field_number; in ResetOneofField() 447 uint32* oneof_case = Raw<uint32>(msg, table.oneof_case_offset); \ in MergePartialFromCodedStreamInlined() 454 ClearOneofField(table.fields[oneof_case[presence_index]], \ in MergePartialFromCodedStreamInlined() 456 SetOneofField(msg, oneof_case, presence_index, offset, field_number, \ in MergePartialFromCodedStreamInlined() [all …]
|
D | generated_message_reflection.cc | 2048 uint32 oneof_case = GetOneofCase(*message, oneof_descriptor); in ClearOneof() local 2049 if (oneof_case > 0) { in ClearOneof() 2050 const FieldDescriptor* field = descriptor_->FindFieldByNumber(oneof_case); in ClearOneof()
|
/external/rust/crates/grpcio-sys/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()
|
/external/tensorflow/tensorflow/core/framework/ |
D | kernel_def_util.cc | 82 #define RETURN_IF_ATTR_NOT_FOUND(n, oneof_case, type_str) \ in KernelAttrsMatch() argument 84 if (constraint_value_case == AttrValue::oneof_case) { \ in KernelAttrsMatch()
|
D | attr_value_util.cc | 302 #define VALIDATE_FIELD(name, type_string, oneof_case) \ in AttrValueHasType() argument 313 } else if (attr_value.value_case() == AttrValue::oneof_case) { \ in AttrValueHasType()
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | storage.c | 651 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_clear() local 659 *oneof_case = ONEOF_CASE_NONE; in layout_clear() 747 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_get() local 757 if (*oneof_case != upb_fielddef_number(field)) { in layout_get() 839 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_set() local 844 *oneof_case = ONEOF_CASE_NONE; in layout_set() 863 oneof_case, upb_fielddef_number(field)); in layout_set() 901 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_mark() local 904 if (*oneof_case == upb_fielddef_number(field)) { in layout_mark()
|
D | message.c | 85 uint32_t oneof_case; in which_oneof_field() local 103 oneof_case = *((uint32_t*)((char*)Message_data(self) + case_ofs)); in which_oneof_field() 105 if (oneof_case == ONEOF_CASE_NONE) { in which_oneof_field() 110 f = upb_oneofdef_itof(o, oneof_case); in which_oneof_field()
|
/external/protobuf/php/ext/google/protobuf/ |
D | storage.c | 767 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_init() local 773 *oneof_case = ONEOF_CASE_NONE; in layout_init() 815 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_get() local 818 if (*oneof_case != upb_fielddef_number(field)) { in layout_get() 838 uint32_t* oneof_case = slot_oneof_case(layout, storage, field); in layout_set() local 868 *oneof_case = upb_fielddef_number(field); in layout_set() 1148 uint32_t* oneof_case = slot_oneof_case(layout, storage, first_field); in layout_get_oneof_case() local 1149 if (*oneof_case == 0) { in layout_get_oneof_case() 1152 const upb_fielddef* field = upb_oneofdef_itof(oneof, *oneof_case); in layout_get_oneof_case()
|
D | message.c | 472 uint32_t* oneof_case = slot_oneof_case(intern->descriptor->layout, local 479 *oneof_case = upb_fielddef_number(field);
|