/third_party/flatbuffers/src/ |
D | idl_gen_java.cpp | 380 std::string GenGetterForLookupByKey(flatbuffers::FieldDef *key_field, in GenGetterForLookupByKey() argument 383 auto type = key_field->value.type; in GenGetterForLookupByKey() 390 getter = dest_cast + getter + "(" + GenOffsetGetter(key_field, num) + ")" + in GenGetterForLookupByKey() 506 std::string GenOffsetGetter(flatbuffers::FieldDef *key_field, in GenOffsetGetter() argument 509 key_offset += "__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter() 520 std::string GenLookupKeyGetter(flatbuffers::FieldDef *key_field) const { in GenLookupKeyGetter() 525 if (IsString(key_field->value.type)) { in GenLookupKeyGetter() 528 key_getter += GenOffsetGetter(key_field); in GenLookupKeyGetter() 531 auto get_val = GenGetterForLookupByKey(key_field, "bb"); in GenLookupKeyGetter() 532 key_getter += GenTypeNameDest(key_field->value.type) + " val = "; in GenLookupKeyGetter() [all …]
|
D | idl_gen_kotlin.cpp | 371 std::string GenLookupByKey(flatbuffers::FieldDef *key_field, in GenLookupByKey() argument 374 auto type = key_field->value.type; in GenLookupByKey() 376 GenOffsetGetter(key_field, num) + ")"; in GenLookupByKey() 441 std::string GenOffsetGetter(flatbuffers::FieldDef *key_field, in GenOffsetGetter() argument 444 "__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter() 490 FieldDef *key_field = nullptr; in GenStruct() local 513 if (field.key) key_field = &field; in GenStruct() 535 GenerateLookupByKey(key_field, struct_def, writer, options); in GenStruct() 549 void GenerateLookupByKey(FieldDef *key_field, StructDef &struct_def, in GenerateLookupByKey() argument 555 params << "key: " << GenTypeGet(key_field->value.type) << ", "; in GenerateLookupByKey() [all …]
|
D | idl_gen_csharp.cpp | 345 std::string GenGetterForLookupByKey(flatbuffers::FieldDef *key_field, in GenGetterForLookupByKey() argument 348 auto type = key_field->value.type; in GenGetterForLookupByKey() 355 getter = dest_cast + getter + "(" + GenOffsetGetter(key_field, num) + ")" + in GenGetterForLookupByKey() 474 std::string GenOffsetGetter(flatbuffers::FieldDef *key_field, in GenOffsetGetter() argument 477 "Table.__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter() 488 std::string GenLookupKeyGetter(flatbuffers::FieldDef *key_field) const { in GenLookupKeyGetter() 493 if (IsString(key_field->value.type)) { in GenLookupKeyGetter() 496 key_getter += GenOffsetGetter(key_field); in GenLookupKeyGetter() 499 auto get_val = GenGetterForLookupByKey(key_field, "bb"); in GenLookupKeyGetter() 505 std::string GenKeyGetter(flatbuffers::FieldDef *key_field) const { in GenKeyGetter() [all …]
|
D | idl_gen_swift.cpp | 447 flatbuffers::FieldDef *key_field = nullptr; in GenTableWriter() local 463 if (field.key) key_field = &field; in GenTableWriter() 510 if (key_field != nullptr && !struct_def.fixed && struct_def.has_key) { in GenTableWriter() 513 code_.SetValue("VOFFSET", NumToString(key_field->value.offset)); in GenTableWriter() 529 GenLookup(*key_field); in GenTableWriter() 825 auto &key_field = **kit; in GenTableReaderVectorFields() local 826 if (key_field.key) { in GenTableReaderVectorFields() 827 GenByKeyFunctions(key_field); in GenTableReaderVectorFields() 834 void GenByKeyFunctions(const FieldDef &key_field) { in GenByKeyFunctions() argument 835 code_.SetValue("TYPE", GenType(key_field.value.type)); in GenByKeyFunctions() [all …]
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
D | Message.php | 103 $key_field = $message_type->getFieldByNumber(1); 109 $key_field->getType(), 116 $key_field->getType(), 123 $key_field->getType(), 550 $key_field = $message_type->getFieldByNumber(1); 556 $key_field->getType(), 563 $key_field->getType(), 570 $key_field->getType(), 1250 $key_field = $field->getMessageType()->getFieldByNumber(1); 1259 $key_field, [all …]
|
D | GPBJsonWire.php | 66 $key_field = $map_entry->getFieldByNumber(1); 69 switch ($key_field->getType()) { 93 $key_field,
|
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_map_field.cc | 213 const FieldDescriptor* key_field = in GenerateSerializeWithCachedSizesToArray() local 217 const bool string_key = key_field->type() == FieldDescriptor::TYPE_STRING; in GenerateSerializeWithCachedSizesToArray() 244 key_field, options_, false, in GenerateSerializeWithCachedSizesToArray()
|
/third_party/grpc/third_party/upb/upb/json/ |
D | printer.c | 647 const upb_fielddef* key_field = upb_msgdef_itof(md, UPB_MAPENTRY_KEY); in printer_sethandlers_mapentry() local 654 switch (upb_fielddef_type(key_field)) { in printer_sethandlers_mapentry() 656 upb_handlers_setint32(h, key_field, putmapkey_int32_t, &empty_attr); in printer_sethandlers_mapentry() 659 upb_handlers_setint64(h, key_field, putmapkey_int64_t, &empty_attr); in printer_sethandlers_mapentry() 662 upb_handlers_setuint32(h, key_field, putmapkey_uint32_t, &empty_attr); in printer_sethandlers_mapentry() 665 upb_handlers_setuint64(h, key_field, putmapkey_uint64_t, &empty_attr); in printer_sethandlers_mapentry() 668 upb_handlers_setbool(h, key_field, putmapkey_bool, &empty_attr); in printer_sethandlers_mapentry() 671 upb_handlers_setstartstr(h, key_field, mapkeyval_startstr, &empty_attr); in printer_sethandlers_mapentry() 672 upb_handlers_setstring(h, key_field, mapkey_str, &empty_attr); in printer_sethandlers_mapentry() 673 upb_handlers_setendstr(h, key_field, mapkey_endstr, &empty_attr); in printer_sethandlers_mapentry() [all …]
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
D | storage.c | 464 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key() local 465 assert(key_field != NULL); in map_entry_key() 466 return key_field; in map_entry_key() 793 const upb_fielddef* key_field = map_field_key(field); in layout_clear() local 799 fieldtype_to_ruby(upb_fielddef_type(key_field)), in layout_clear() 806 fieldtype_to_ruby(upb_fielddef_type(key_field)), in layout_clear() 920 const upb_fielddef* key_field = map_field_key(field); in check_map_field_type() local 930 if (self->key_type != upb_fielddef_type(key_field)) { in check_map_field_type()
|
D | encode_decode.c | 472 const upb_fielddef* key_field; in new_map_handlerdata() local 476 key_field = upb_msgdef_itof(mapentry_def, MAP_KEY_FIELD); in new_map_handlerdata() 477 assert(key_field != NULL); in new_map_handlerdata() 478 hd->key_field_type = upb_fielddef_type(key_field); in new_map_handlerdata() 775 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry() local 785 desc, h, key_field, in add_handlers_for_mapentry() 1315 const upb_fielddef* key_field; in putmap() local 1327 key_field = map_field_key(f); in putmap() 1340 put_ruby_value(key, key_field, Qnil, depth + 1, entry_sink, emit_defaults, in putmap()
|
D | upb.c | 541 const upb_msglayout_field *key_field = &entry->fields[0]; in decode_tomap() local 543 char key_size = desctype_to_mapsize[key_field->descriptortype]; in decode_tomap() 545 UPB_ASSERT(key_field->offset == 0); in decode_tomap() 1068 const upb_msglayout_field *key_field = &entry->fields[0]; in upb_encode_map() local 1087 CHK(upb_encode_scalarfield(e, keyp, entry, key_field, false)); in upb_encode_map() 13038 const upb_fielddef* key_field = upb_msgdef_itof(md, UPB_MAPENTRY_KEY); in printer_sethandlers_mapentry() local 13045 switch (upb_fielddef_type(key_field)) { in printer_sethandlers_mapentry() 13047 upb_handlers_setint32(h, key_field, putmapkey_int32_t, &empty_attr); in printer_sethandlers_mapentry() 13050 upb_handlers_setint64(h, key_field, putmapkey_int64_t, &empty_attr); in printer_sethandlers_mapentry() 13053 upb_handlers_setuint32(h, key_field, putmapkey_uint32_t, &empty_attr); in printer_sethandlers_mapentry() [all …]
|
/third_party/grpc/third_party/upb/upb/ |
D | decode.c | 448 const upb_msglayout_field *key_field = &entry->fields[0]; in decode_tomap() local 450 char key_size = desctype_to_mapsize[key_field->descriptortype]; in decode_tomap() 452 UPB_ASSERT(key_field->offset == 0); in decode_tomap()
|
D | encode.c | 359 const upb_msglayout_field *key_field = &layout->fields[0]; in encode_mapentry() local 364 encode_scalar(e, &ent->k, layout, key_field, false); in encode_mapentry()
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 1139 FieldDescriptorProto* key_field = entry->add_field(); in GenerateMapEntry() local 1140 key_field->set_name("key"); in GenerateMapEntry() 1141 key_field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in GenerateMapEntry() 1142 key_field->set_number(1); in GenerateMapEntry() 1144 key_field->set_type(map_field.key_type); in GenerateMapEntry() 1146 key_field->set_type_name(map_field.key_type_name); in GenerateMapEntry() 1183 if (key_field->type() == FieldDescriptorProto::TYPE_STRING) { in GenerateMapEntry() 1184 key_field->mutable_options()->add_uninterpreted_option()->CopyFrom( in GenerateMapEntry()
|
/third_party/protobuf/src/google/protobuf/compiler/ruby/ |
D | ruby_generator.cc | 174 const FieldDescriptor* key_field = in GenerateField() local 182 "key_type", TypeName(key_field), in GenerateField()
|
/third_party/protobuf/src/google/protobuf/compiler/js/ |
D | js_generator.cc | 1291 const FieldDescriptor* key_field = MapFieldKey(field); in FieldDefinition() local 1293 std::string key_type = ProtoTypeName(options, key_field); in FieldDefinition() 2580 const FieldDescriptor* key_field = MapFieldKey(field); in GenerateClassField() local 2584 JSFieldTypeAnnotation(options, key_field, in GenerateClassField() 3123 const FieldDescriptor* key_field = MapFieldKey(field); in GenerateClassDeserializeBinaryField() local 3133 "keyReaderFn", JSBinaryReaderMethodName(options, key_field), in GenerateClassDeserializeBinaryField() 3143 printer->Print(", $defaultKey$", "defaultKey", JSFieldDefault(key_field)); in GenerateClassDeserializeBinaryField() 3312 const FieldDescriptor* key_field = MapFieldKey(field); in GenerateClassSerializeBinaryField() local 3318 JSBinaryWriterMethodName(options, key_field), "valueWriterFn", in GenerateClassSerializeBinaryField()
|
/third_party/protobuf/src/google/protobuf/ |
D | wire_format.cc | 1189 const FieldDescriptor* key_field = field->message_type()->field(0); in InternalSerializeMapEntry() local 1193 size += MapKeyDataOnlyByteSize(key_field, key); in InternalSerializeMapEntry() 1199 target = SerializeMapKeyWithCachedSizes(key_field, key, target, stream); in InternalSerializeMapEntry() 1620 const FieldDescriptor* key_field = field->message_type()->field(0); in FieldDataOnlyByteSize() local 1625 size += MapKeyDataOnlyByteSize(key_field, iter.GetKey()); in FieldDataOnlyByteSize()
|
D | map_test.cc | 1910 const FieldDescriptor* key_field = in TEST_F() local 1912 entry_reflection->SetInt32(entry1, key_field, 1); in TEST_F() 1913 entry_reflection->SetInt32(entry2, key_field, 1); in TEST_F() 1931 const FieldDescriptor* key_field = in TEST_F() local 1933 entry_reflection->SetInt32(entry1, key_field, 1); in TEST_F() 1934 entry_reflection->SetInt32(entry2, key_field, 1); in TEST_F()
|
/third_party/protobuf/python/google/protobuf/ |
D | json_format.py | 693 key_field = field.message_type.fields_by_name['key'] 696 key_value = _ConvertScalarFieldValue(key, key_field, True)
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | protostream_objectsource.cc | 301 const google::protobuf::Field* key_field = in RenderMap() local 303 if (key_field == nullptr) { in RenderMap() 308 ASSIGN_OR_RETURN(map_key, MapKeyDefaultValueAsString(*key_field)); in RenderMap()
|
/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer_unittest.cc | 3310 const FieldDescriptor* key_field = in IsMatch() local 3312 return reflection1->GetString(message1, key_field).size() == in IsMatch() 3313 reflection2->GetString(message2, key_field).size(); in IsMatch()
|
/third_party/protobuf/php/ext/google/protobuf/ |
D | php-upb.c | 593 const upb_msglayout_field *key_field = &entry->fields[0]; in decode_tomap() local 595 char key_size = desctype_to_mapsize[key_field->descriptortype]; in decode_tomap() 597 UPB_ASSERT(key_field->offset == 0); in decode_tomap() 1113 const upb_msglayout_field *key_field = &entry->fields[0]; in upb_encode_map() local 1130 CHK(upb_encode_scalarfield(e, &ent.k, entry, key_field, false)); in upb_encode_map()
|