/external/protobuf/php/ext/google/protobuf/ |
D | storage.c | 293 MessageLayout* create_layout(const upb_msgdef* msgdef) { in create_layout() argument 295 int nfields = upb_msgdef_numfields(msgdef); in create_layout() 302 for (upb_msg_field_begin(&it, msgdef); !upb_msg_field_done(&it); in create_layout() 341 for (upb_msg_oneof_begin(&oit, msgdef); !upb_msg_oneof_done(&oit); in create_layout() 361 for (upb_msg_oneof_begin(&oit, msgdef); !upb_msg_oneof_done(&oit); in create_layout() 380 layout->msgdef = msgdef; in create_layout() 381 upb_msgdef_ref(layout->msgdef, &layout->msgdef); in create_layout() 388 upb_msgdef_unref(layout->msgdef, &layout->msgdef); in free_layout() 459 for (upb_msg_field_begin(&it, layout->msgdef); !upb_msg_field_done(&it); in layout_init()
|
D | def.c | 147 static void validate_msgdef(const upb_msgdef* msgdef) { in validate_msgdef() argument 150 for (upb_msg_field_begin(&it, msgdef); in validate_msgdef() 172 defs[i] = (upb_def *)desc->msgdef; in PHP_METHOD() 203 upb_msg_field_begin(&iter, self->msgdef); in descriptor_free_c() 209 upb_msgdef_unref(self->msgdef, &self->msgdef); in descriptor_free_c() 217 upb_msgdef *mut_def = check_msgdef_notfrozen(desc->msgdef); in descriptor_add_field() 226 desc->msgdef = upb_msgdef_new(&desc->msgdef); in descriptor_init_c_instance() 234 upb_msgdef *mut_def = check_msgdef_notfrozen(desc->msgdef); in Descriptor_name_set()
|
D | protobuf.h | 72 const upb_msgdef* msgdef; member 124 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef); 125 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef); 139 const upb_msgdef* msgdef; member 147 MessageLayout* create_layout(const upb_msgdef* msgdef);
|
D | message.c | 50 field = upb_msgdef_ntofz(self->descriptor->msgdef, Z_STRVAL_P(field_name)); in message_set_property() 64 field = upb_msgdef_ntofz(self->descriptor->msgdef, Z_STRVAL_P(member)); in message_get_property() 181 upb_pb_encoder_newhandlers(desc->msgdef, &desc->pb_serialize_handlers); in msgdef_pb_serialize_handlers() 244 MessageLayout* layout = create_layout(desc->msgdef); in build_class_from_descriptor() 252 const char* name = upb_msgdef_fullname(desc->msgdef); in build_class_from_descriptor()
|
D | upb.h | 1421 UPB_DECLARE_DEF_TYPE(upb::MessageDef, msgdef, MSG) 3080 packed, name, num, msgdef, subdef, selector_base, \ argument 3083 UPB_DEF_INIT(name, UPB_DEF_FIELD, refs, ref2s), defaultval, {msgdef}, \
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | storage.c | 379 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef) { in map_entry_key() argument 380 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key() 385 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef) { in map_entry_value() argument 386 const upb_fielddef* value_field = upb_msgdef_itof(msgdef, MAP_VALUE_FIELD); in map_entry_value() 400 MessageLayout* create_layout(const upb_msgdef* msgdef) { in create_layout() argument 402 int nfields = upb_msgdef_numfields(msgdef); in create_layout() 409 for (upb_msg_field_begin(&it, msgdef); in create_layout() 448 for (upb_msg_oneof_begin(&oit, msgdef); in create_layout() 470 for (upb_msg_oneof_begin(&oit, msgdef); in create_layout() 491 layout->msgdef = msgdef; in create_layout() [all …]
|
D | defs.c | 139 upb_symtab_add(self->symtab, (upb_def**)&descriptor->msgdef, 1, in add_descriptor_to_pool() 236 upb_msgdef_unref(self->msgdef, &self->msgdef); in Descriptor_free() 277 self->msgdef = upb_msgdef_new(&self->msgdef); in Descriptor_alloc() 317 return rb_str_maybe_null(upb_msgdef_fullname(self->msgdef)); in Descriptor_name() 329 upb_msgdef* mut_def = check_msg_notfrozen(self->msgdef); in Descriptor_name_set() 347 for (upb_msg_field_begin(&it, self->msgdef); in Descriptor_each() 367 const upb_fielddef* field = upb_msgdef_ntofz(self->msgdef, s); in Descriptor_lookup() 385 upb_msgdef* mut_def = check_msg_notfrozen(self->msgdef); in Descriptor_add_field() 408 upb_msgdef* mut_def = check_msg_notfrozen(self->msgdef); in Descriptor_add_oneof() 429 for (upb_msg_oneof_begin(&it, self->msgdef); in Descriptor_each_oneof() [all …]
|
D | message.c | 155 if (!upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, &f, in Message_method_missing() 195 f = upb_msgdef_ntofz(self->descriptor->msgdef, name); in Message_initialize_kwarg() 364 for (upb_msg_field_begin(&it, self->descriptor->msgdef); in Message_to_h() 393 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name)); in Message_index() 412 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name)); in Message_index_set() 436 desc->layout = create_layout(desc->msgdef); in build_class_from_descriptor() 442 name = upb_msgdef_fullname(desc->msgdef); in build_class_from_descriptor() 453 get_def_obj(desc->msgdef)); in build_class_from_descriptor()
|
D | encode_decode.c | 494 static void add_handlers_for_mapentry(const upb_msgdef* msgdef, in add_handlers_for_mapentry() argument 497 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry() 498 const upb_fielddef* value_field = map_entry_value(msgdef); in add_handlers_for_mapentry() 499 map_handlerdata_t* hd = new_map_handlerdata(0, msgdef, desc); in add_handlers_for_mapentry() 562 const upb_msgdef* msgdef = upb_handlers_msgdef(h); in add_handlers_for_message() local 563 Descriptor* desc = ruby_to_Descriptor(get_def_obj((void*)msgdef)); in add_handlers_for_message() 568 if (upb_msgdef_mapentry(msgdef)) { in add_handlers_for_message() 569 add_handlers_for_mapentry(msgdef, h, desc); in add_handlers_for_message() 578 desc->layout = create_layout(desc->msgdef); in add_handlers_for_message() 581 for (upb_msg_field_begin(&i, desc->msgdef); in add_handlers_for_message() [all …]
|
D | protobuf.h | 110 const upb_msgdef* msgdef; member 340 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef); 341 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef); 451 const upb_msgdef* msgdef; member 456 MessageLayout* create_layout(const upb_msgdef* msgdef);
|
D | upb.h | 1833 UPB_DECLARE_DEF_TYPE(upb::MessageDef, msgdef, MSG) 3762 packed, name, num, msgdef, subdef, selector_base, \ 3766 defaultval, {msgdef}, {subdef}, NULL, false, false, \
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyBuilder.java | 90 RubyDescriptor msgdef = (RubyDescriptor) cDescriptor.newInstance(context, Block.NULL_BLOCK); in addMessage() local 91 … IRubyObject ctx = cMessageBuilderContext.newInstance(context, msgdef, this, Block.NULL_BLOCK); in addMessage() 92 msgdef.setName(context, name); in addMessage() 102 this.pendingList.add(msgdef); in addMessage()
|
/external/protobuf/ruby/tests/ |
D | basic.rb | 1097 msgdef = m.class.descriptor 1098 assert msgdef.class == Google::Protobuf::Descriptor 1099 assert msgdef.any? {|field| field.name == "optional_int32"} 1100 optional_int32 = msgdef.lookup "optional_int32" 1110 optional_msg = msgdef.lookup "optional_msg" 1115 assert msgdef.msgclass == TestMessage 1117 optional_enum = msgdef.lookup "optional_enum"
|