Home
last modified time | relevance | path

Searched refs:hasbit (Results 1 – 12 of 12) sorted by relevance

/third_party/protobuf/ruby/ext/google/protobuf_c/
Dstorage.c481 return layout->fields[upb_fielddef_index(field)].hasbit != in field_contains_hasbit()
503 size_t hasbit = 0; in create_layout() local
535 layout->fields[upb_fielddef_index(field)].hasbit = hasbit++; in create_layout()
537 layout->fields[upb_fielddef_index(field)].hasbit = in create_layout()
542 if (hasbit != 0) { in create_layout()
543 off += (hasbit + 8 - 1) / 8; in create_layout()
740 size_t hasbit = layout->fields[upb_fielddef_index(field)].hasbit; in slot_set_hasbit() local
741 assert(hasbit != MESSAGE_FIELD_NO_HASBIT); in slot_set_hasbit()
743 ((uint8_t*)storage)[hasbit / 8] |= 1 << (hasbit % 8); in slot_set_hasbit()
749 size_t hasbit = layout->fields[upb_fielddef_index(field)].hasbit; in slot_clear_hasbit() local
[all …]
Dencode_decode.c126 int32_t hasbit; member
130 static const void* newhandlerdata(upb_handlers* h, uint32_t ofs, int32_t hasbit) { in newhandlerdata() argument
133 hd->hasbit = hasbit; in newhandlerdata()
140 int32_t hasbit; member
149 int32_t hasbit, in newsubmsghandlerdata() argument
154 hd->hasbit = hasbit; in newsubmsghandlerdata()
230 static void set_hasbit(void *closure, int32_t hasbit) { in set_hasbit() argument
231 if (hasbit > 0) { in set_hasbit()
233 storage[hasbit/8] |= 1 << (hasbit % 8); in set_hasbit()
258 set_hasbit(closure, fieldhandler->hasbit); in str_handler()
[all …]
Dupb.c579 uint32_t hasbit = field->presence; in decode_tomsg() local
580 *UPB_PTR_AT(msg, hasbit / 8, uint8_t) |= (1 << (hasbit % 8)); in decode_tomsg()
852 uint32_t hasbit = f->presence; in upb_readhasbit() local
854 return (*UPB_PTR_AT(msg, hasbit / 8, uint8_t)) & (1 << (hasbit % 8)); in upb_readhasbit()
3900 size_t hasbit; in make_layout() local
3958 for (upb_msg_field_begin(&it, m), hasbit = 0; in make_layout()
3987 field->presence = ++hasbit; in make_layout()
3994 l->size = div_round_up(hasbit, 8); in make_layout()
5177 uint32_t hasbit = field->presence; in upb_msg_has() local
5178 return *UPB_PTR_AT(msg, hasbit / 8, uint8_t) & (1 << (hasbit % 8)); in upb_msg_has()
[all …]
Dprotobuf.h512 uint32_t hasbit; member
Dupb.h4260 int32_t hasbit);
4268 int32_t *hasbit);
/third_party/grpc/third_party/upb/upb/
Dhandlers.c456 int32_t hasbit; member
464 if (d->hasbit > 0) \
465 *(uint8_t*)&m[d->hasbit / 8] |= 1 << (d->hasbit % 8); \
479 size_t offset, int32_t hasbit) { in MSG_WRITER()
486 d->hasbit = hasbit; in MSG_WRITER()
518 int32_t *hasbit) { in upb_msg_getscalarhandlerdata() argument
543 *hasbit = d->hasbit; in upb_msg_getscalarhandlerdata()
Dhandlers.h715 int32_t hasbit);
723 int32_t *hasbit);
Ddef.c1034 size_t hasbit; in make_layout() local
1092 for (upb_msg_field_begin(&it, m), hasbit = 0; in make_layout()
1124 field->presence = ++hasbit; in make_layout()
1131 l->size = div_round_up(hasbit, 8); in make_layout()
/third_party/protobuf/src/google/protobuf/
Dgenerated_message_util.h125 inline bool IsPresent(const void* base, uint32 hasbit) { in IsPresent() argument
127 return (has_bits_array[hasbit / 32] & (1u << (hasbit & 31))) != 0; in IsPresent()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc652 int hasbit = HasBitIndex(field); in HasByteIndex() local
653 return hasbit == kNoHasbit ? kNoHasbit : hasbit / 8; in HasByteIndex()
657 int hasbit = HasBitIndex(field); in HasWordIndex() local
658 return hasbit == kNoHasbit ? kNoHasbit : hasbit / 32; in HasWordIndex()
/third_party/protobuf/docs/
Dimplementing_proto3_presence.md349 the hasbit to determine if the oneof is present or not.
351 method like `Reflection::HasField()` should know to look for the hasbit for a
/third_party/protobuf/php/ext/google/protobuf/
Dphp-upb.c4355 size_t hasbit; in make_layout() local
4414 for (upb_msg_field_begin(&it, m), hasbit = 0; in make_layout()
4446 field->presence = ++hasbit; in make_layout()
4453 l->size = div_round_up(hasbit, 8); in make_layout()