Home
last modified time | relevance | path

Searched refs:pb_size_t (Results 1 – 19 of 19) sorted by relevance

/nanopb-2.7.6/
Dpb_common.c25 iter->tag = (pb_size_t)((word0 >> 2) & 0x3F); in load_descriptor_values()
28 iter->data_size = (pb_size_t)((word0 >> 28) & 0x0F); in load_descriptor_values()
36 iter->array_size = (pb_size_t)((word0 >> 16) & 0x0FFF); in load_descriptor_values()
37 iter->tag = (pb_size_t)(((word0 >> 2) & 0x3F) | ((word1 >> 28) << 6)); in load_descriptor_values()
40 iter->data_size = (pb_size_t)((word1 >> 16) & 0x0FFF); in load_descriptor_values()
50 iter->array_size = (pb_size_t)(word0 >> 16); in load_descriptor_values()
51 iter->tag = (pb_size_t)(((word0 >> 2) & 0x3F) | ((word1 >> 8) << 6)); in load_descriptor_values()
54 iter->data_size = (pb_size_t)word3; in load_descriptor_values()
65 iter->array_size = (pb_size_t)word4; in load_descriptor_values()
66 iter->tag = (pb_size_t)(((word0 >> 2) & 0x3F) | ((word1 >> 8) << 6)); in load_descriptor_values()
[all …]
Dpb_decode.c483 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
510 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
521 *(pb_size_t*)field->pSize != field->tag) in decode_static_field()
545 *(pb_size_t*)field->pSize = field->tag; in decode_static_field()
642 *(pb_size_t*)field->pSize = field->tag; in decode_pointer_field()
668 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
723 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
891 *(pb_size_t*)field->pSize = 0; in pb_field_set_to_default()
928 *(pb_size_t*)field->pSize = 0; in pb_field_set_to_default()
987 pb_size_t fixed_count_field = PB_SIZE_MAX; in pb_decode_inner()
[all …]
Dpb.h257 typedef uint32_t pb_size_t; typedef
260 typedef uint_least16_t pb_size_t; typedef
263 #define PB_SIZE_MAX ((pb_size_t)-1)
287 pb_size_t field_count;
288 pb_size_t required_field_count;
289 pb_size_t largest_tag;
297 pb_size_t index; /* Index of the field */
298 pb_size_t field_info_index; /* Index to descriptor->field_info array */
299 pb_size_t required_field_index; /* Index that counts only the required fields */
300 pb_size_t submessage_index; /* Index that counts only submessages */
[all …]
Dpb_encode.c127 pb_size_t i; in encode_array()
128 pb_size_t count; in encode_array()
133 count = *(pb_size_t*)field->pSize; in encode_array()
255 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
260 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
282 pb_size_t i; in pb_check_proto3_default_value()
420 if (*(const pb_size_t*)field->pSize != field->tag) in encode_field()
DCHANGELOG.txt335 Change the _count fields to use pb_size_t datatype (issue 82)
/nanopb-2.7.6/tests/fuzztest/
Dvalidation.c8 pb_size_t count = 1; in validate_static()
9 pb_size_t i; in validate_static()
16 count = *(pb_size_t*)iter->pSize; in validate_static()
27 if (*(pb_size_t*)iter->pSize != iter->tag) in validate_static()
64 pb_size_t count = 1; in validate_pointer()
65 pb_size_t i; in validate_pointer()
71 if (*(pb_size_t*)iter->pSize != iter->tag) in validate_pointer()
82 assert(*(pb_size_t*)iter->pSize == 0); in validate_pointer()
91 count = *(pb_size_t*)iter->pSize; in validate_pointer()
Dgenerate_message.c35 *((pb_size_t*)iter.pSize) %= iter.array_size; in limit_sizes()
43 *((pb_size_t*)iter.pSize) = iter.tag; in limit_sizes()
/nanopb-2.7.6/tests/backwards_compatibility/
Dalltypes_legacy.h88 pb_size_t rep_int32_count;
90 pb_size_t rep_int64_count;
92 pb_size_t rep_uint32_count;
94 pb_size_t rep_uint64_count;
96 pb_size_t rep_sint32_count;
98 pb_size_t rep_sint64_count;
100 pb_size_t rep_bool_count;
102 pb_size_t rep_fixed32_count;
104 pb_size_t rep_sfixed32_count;
106 pb_size_t rep_float_count;
[all …]
/nanopb-2.7.6/tests/regression/issue_205/
Dsize_corruption.c7 msg.bar_count = (pb_size_t)-1; in main()
/nanopb-2.7.6/tests/regression/issue_376/
Dtest_fixarray.c13 pb_size_t msglen = 0; in main()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h257 typedef uint32_t pb_size_t; typedef
260 typedef uint_least16_t pb_size_t; typedef
263 #define PB_SIZE_MAX ((pb_size_t)-1)
287 pb_size_t field_count;
288 pb_size_t required_field_count;
289 pb_size_t largest_tag;
297 pb_size_t index; /* Index of the field */
298 pb_size_t field_info_index; /* Index to descriptor->field_info array */
299 pb_size_t required_field_index; /* Index that counts only the required fields */
300 pb_size_t submessage_index; /* Index that counts only submessages */
[all …]
/nanopb-2.7.6/tests/regression/issue_363/
Dtest_oneofmsg.c13 pb_size_t msglen = 0; in main()
/nanopb-2.7.6/tests/regression/issue_342/
Dtest_extensions.c19 pb_size_t msglen = 0; in main()
/nanopb-2.7.6/tests/regression/issue_249/
Dtest.c37 pb_size_t msglen; in main()
/nanopb-2.7.6/docs/
Dreference.md173 ### pb_size_t subsection
178 typedef uint_least16_t pb_size_t;
238 pb_size_t field_count;
265 pb_size_t index;
266 pb_size_t field_info_index;
267 pb_size_t required_field_index;
268 pb_size_t submessage_index;
270 pb_size_t tag;
271 pb_size_t data_size;
272 pb_size_t array_size;
[all …]
Dconcepts.md203 .pb.h: `PB_BYTES_ARRAY_T(16) data;`, where the struct contains `{pb_size_t size; pb_byte_t bytes[n]…
211 .pb.h: `pb_size_t numbers_count;` `int32_t numbers[5];`
437 pb_size_t which_payload;
Dmigration.md396 ### Change data type of field counts to pb_size_t
404 **Changes:** Generator will now use `pb_size_t` for the array
409 to the `pb_size_t` type may need to be added in the user code when
/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c264 struct { pb_size_t size; uint8_t bytes[5]; } d; in main()
353 struct { pb_size_t size; uint8_t bytes[10]; } ref; in main()
/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c242 struct { pb_size_t size; uint8_t bytes[5]; } value = {5, {'x', 'y', 'z', 'z', 'y'}}; in main()