Home
last modified time | relevance | path

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

/nanopb-2.7.6/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-2.7.6/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-2.7.6/
Dpb_encode.c143 if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in encode_array()
149 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32) in encode_array()
153 else if (PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
180 … if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32 || PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
204 (PB_LTYPE(field->type) == PB_LTYPE_STRING || in encode_array()
205 PB_LTYPE(field->type) == PB_LTYPE_BYTES)) in encode_array()
279 if (PB_LTYPE(type) <= PB_LTYPE_LAST_PACKABLE) in pb_check_proto3_default_value()
294 else if (PB_LTYPE(type) == PB_LTYPE_BYTES) in pb_check_proto3_default_value()
299 else if (PB_LTYPE(type) == PB_LTYPE_STRING) in pb_check_proto3_default_value()
303 else if (PB_LTYPE(type) == PB_LTYPE_FIXED_LENGTH_BYTES) in pb_check_proto3_default_value()
[all …]
Dpb_decode.c395 switch (PB_LTYPE(field->type)) in decode_basic_field()
478 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_static_field()
607 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in initialize_pointer_field()
608 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in initialize_pointer_field()
645 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in decode_pointer_field()
646 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in decode_pointer_field()
664 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_pointer_field()
862 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_field_set_to_default()
1030 if (!pb_field_iter_find(&iter, tag) || PB_LTYPE(iter.type) == PB_LTYPE_EXTENSION) in pb_decode_inner()
1231 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.h249 #define PB_LTYPE(x) ((x) & PB_LTYPE_MASK) macro
250 #define PB_LTYPE_IS_SUBMSG(x) (PB_LTYPE(x) == PB_LTYPE_SUBMESSAGE || \
251 PB_LTYPE(x) == PB_LTYPE_SUBMSG_W_CB)
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h249 #define PB_LTYPE(x) ((x) & PB_LTYPE_MASK) macro
250 #define PB_LTYPE_IS_SUBMSG(x) (PB_LTYPE(x) == PB_LTYPE_SUBMESSAGE || \
251 PB_LTYPE(x) == PB_LTYPE_SUBMSG_W_CB)
/nanopb-2.7.6/docs/
Dreference.md593 This function only considers the `PB_LTYPE` of the field. You can use it from