Home
last modified time | relevance | path

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

/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c355 func = PB_DECODERS[PB_LTYPE(type)]; in decode_static_field()
368 && PB_LTYPE(type) <= PB_LTYPE_LAST_PACKABLE) in decode_static_field()
408 if (PB_LTYPE(type) == PB_LTYPE_SUBMESSAGE) in decode_static_field()
465 if (PB_LTYPE(iter->pos->type) == PB_LTYPE_STRING || in initialize_pointer_field()
466 PB_LTYPE(iter->pos->type) == PB_LTYPE_BYTES) in initialize_pointer_field()
470 else if (PB_LTYPE(iter->pos->type) == PB_LTYPE_SUBMESSAGE) in initialize_pointer_field()
488 func = PB_DECODERS[PB_LTYPE(type)]; in decode_pointer_field()
495 if (PB_LTYPE(type) == PB_LTYPE_SUBMESSAGE && in decode_pointer_field()
507 if (PB_LTYPE(type) == PB_LTYPE_STRING || in decode_pointer_field()
508 PB_LTYPE(type) == PB_LTYPE_BYTES) in decode_pointer_field()
[all …]
Dpb_encode.c127 if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in encode_array()
133 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32) in encode_array()
137 else if (PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
182 (PB_LTYPE(field->type) == PB_LTYPE_STRING || in encode_array()
183 PB_LTYPE(field->type) == PB_LTYPE_BYTES)) in encode_array()
209 func = PB_ENCODERS[PB_LTYPE(field->type)]; in encode_basic_field()
379 if (PB_LTYPE(iter.pos->type) == PB_LTYPE_EXTENSION) in pb_encode()
483 switch (PB_LTYPE(field->type)) in pb_encode_tag_for_field()
643 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED_LENGTH_BYTES) in pb_enc_bytes()
Dpb_common.c84 PB_LTYPE(iter->pos->type) != PB_LTYPE_EXTENSION) in pb_field_iter_find()
Dpb.h200 #define PB_LTYPE(x) ((x) & PB_LTYPE_MASK) macro
/external/nanopb-c/
Dpb_encode.c140 if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in encode_array()
146 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32) in encode_array()
150 else if (PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
195 (PB_LTYPE(field->type) == PB_LTYPE_STRING || in encode_array()
196 PB_LTYPE(field->type) == PB_LTYPE_BYTES)) in encode_array()
245 if (PB_LTYPE(type) == PB_LTYPE_BYTES) in pb_check_proto3_default_value()
250 else if (PB_LTYPE(type) == PB_LTYPE_STRING) in pb_check_proto3_default_value()
254 else if (PB_LTYPE(type) == PB_LTYPE_FIXED_LENGTH_BYTES) in pb_check_proto3_default_value()
261 else if (PB_LTYPE(type) == PB_LTYPE_SUBMESSAGE) in pb_check_proto3_default_value()
314 func = PB_ENCODERS[PB_LTYPE(field->type)]; in encode_basic_field()
[all …]
Dpb_decode.c407 func = PB_DECODERS[PB_LTYPE(type)]; in decode_static_field()
421 && PB_LTYPE(type) <= PB_LTYPE_LAST_PACKABLE) in decode_static_field()
463 if (PB_LTYPE(type) == PB_LTYPE_SUBMESSAGE) in decode_static_field()
520 if (PB_LTYPE(iter->pos->type) == PB_LTYPE_STRING || in initialize_pointer_field()
521 PB_LTYPE(iter->pos->type) == PB_LTYPE_BYTES) in initialize_pointer_field()
525 else if (PB_LTYPE(iter->pos->type) == PB_LTYPE_SUBMESSAGE) in initialize_pointer_field()
546 func = PB_DECODERS[PB_LTYPE(type)]; in decode_pointer_field()
553 if (PB_LTYPE(type) == PB_LTYPE_SUBMESSAGE && in decode_pointer_field()
565 if (PB_LTYPE(type) == PB_LTYPE_STRING || in decode_pointer_field()
566 PB_LTYPE(type) == PB_LTYPE_BYTES) in decode_pointer_field()
[all …]
Dpb_common.c84 PB_LTYPE(iter->pos->type) != PB_LTYPE_EXTENSION) in pb_field_iter_find()
Dpb.h205 #define PB_LTYPE(x) ((x) & PB_LTYPE_MASK) macro
/external/nanopb-c/tests/multiple_files/
Dtest_multiple_files.c19 TEST(PB_LTYPE(Enums_fields[0].type) == PB_LTYPE_VARINT); in main()
20 TEST(PB_LTYPE(Enums_fields[1].type) == PB_LTYPE_UVARINT); in main()
/external/grpc-grpc/third_party/nanopb/tests/multiple_files/
Dtest_multiple_files.c19 TEST(PB_LTYPE(Enums_fields[0].type) == PB_LTYPE_VARINT); in main()
20 TEST(PB_LTYPE(Enums_fields[1].type) == PB_LTYPE_UVARINT); in main()
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dgenerate_message.c45 if (PB_LTYPE(iter.pos->type) == PB_LTYPE_BYTES) in limit_sizes()
/external/nanopb-c/tests/fuzztest/
Dgenerate_message.c45 if (PB_LTYPE(iter.pos->type) == PB_LTYPE_BYTES) in limit_sizes()