Home
last modified time | relevance | path

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

/nanopb-3.4.0/tests/fuzztest/
Dvalidation.c38 if (PB_LTYPE(iter->type) == PB_LTYPE_STRING) in validate_static()
43 else if (PB_LTYPE(iter->type) == PB_LTYPE_BYTES) in validate_static()
49 else if (PB_LTYPE(iter->type) == PB_LTYPE_BOOL) in validate_static()
94 else if (PB_LTYPE(iter->type) != PB_LTYPE_STRING && PB_LTYPE(iter->type) != PB_LTYPE_BYTES) in validate_pointer()
104 if (PB_LTYPE(iter->type) == PB_LTYPE_STRING) in validate_pointer()
118 else if (PB_LTYPE(iter->type) == PB_LTYPE_BYTES) in validate_pointer()
131 else if (PB_LTYPE(iter->type) == PB_LTYPE_BOOL) in validate_pointer()
Dgenerate_message.c28 if (PB_LTYPE(iter.type) == PB_LTYPE_BYTES) in limit_sizes()
/nanopb-3.4.0/tests/multiple_files/
Dtest_multiple_files.c24 TEST(PB_LTYPE(iter.type) == PB_LTYPE_VARINT); in main()
26 TEST(PB_LTYPE(iter.type) == PB_LTYPE_UVARINT); in main()
/nanopb-3.4.0/
Dpb_encode.c145 if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in encode_array()
151 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32) in encode_array()
155 else if (PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
182 … if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32 || PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
206 (PB_LTYPE(field->type) == PB_LTYPE_STRING || in encode_array()
207 PB_LTYPE(field->type) == PB_LTYPE_BYTES)) in encode_array()
281 if (PB_LTYPE(type) <= PB_LTYPE_LAST_PACKABLE) in pb_check_proto3_default_value()
296 else if (PB_LTYPE(type) == PB_LTYPE_BYTES) in pb_check_proto3_default_value()
301 else if (PB_LTYPE(type) == PB_LTYPE_STRING) in pb_check_proto3_default_value()
305 else if (PB_LTYPE(type) == PB_LTYPE_FIXED_LENGTH_BYTES) in pb_check_proto3_default_value()
[all …]
Dpb_decode.c397 switch (PB_LTYPE(field->type)) in decode_basic_field()
480 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_static_field()
609 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in initialize_pointer_field()
610 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in initialize_pointer_field()
647 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in decode_pointer_field()
648 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in decode_pointer_field()
666 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_pointer_field()
873 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_field_set_to_default()
1041 if (!pb_field_iter_find(&iter, tag) || PB_LTYPE(iter.type) == PB_LTYPE_EXTENSION) in pb_decode_inner()
1242 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_release_single_field()
[all …]
Dpb_common.c232 PB_LTYPE(iter->type) != PB_LTYPE_EXTENSION) in pb_field_iter_find()
248 if (PB_LTYPE(iter->type) == PB_LTYPE_EXTENSION) in pb_field_iter_find_extension()
265 if (PB_LTYPE((fieldinfo >> 8) & 0xFF) == PB_LTYPE_EXTENSION) in pb_field_iter_find_extension()
Dpb.h285 #define PB_LTYPE(x) ((x) & PB_LTYPE_MASK) macro
286 #define PB_LTYPE_IS_SUBMSG(x) (PB_LTYPE(x) == PB_LTYPE_SUBMESSAGE || \
287 PB_LTYPE(x) == PB_LTYPE_SUBMSG_W_CB)
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h285 #define PB_LTYPE(x) ((x) & PB_LTYPE_MASK) macro
286 #define PB_LTYPE_IS_SUBMSG(x) (PB_LTYPE(x) == PB_LTYPE_SUBMESSAGE || \
287 PB_LTYPE(x) == PB_LTYPE_SUBMSG_W_CB)
/nanopb-3.4.0/docs/
Dreference.md606 This function only considers the `PB_LTYPE` of the field. You can use it from