Home
last modified time | relevance | path

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

/nanopb-3.4.0/
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.c485 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
512 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
523 *(pb_size_t*)field->pSize != field->tag) in decode_static_field()
547 *(pb_size_t*)field->pSize = field->tag; in decode_static_field()
644 *(pb_size_t*)field->pSize = field->tag; in decode_pointer_field()
670 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
731 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
902 *(pb_size_t*)field->pSize = 0; in pb_field_set_to_default()
939 *(pb_size_t*)field->pSize = 0; in pb_field_set_to_default()
998 pb_size_t fixed_count_field = PB_SIZE_MAX; in pb_decode_inner()
[all …]
Dpb.h293 typedef uint32_t pb_size_t; typedef
296 typedef uint_least16_t pb_size_t; typedef
299 #define PB_SIZE_MAX ((pb_size_t)-1)
323 pb_size_t field_count;
324 pb_size_t required_field_count;
325 pb_size_t largest_tag;
333 pb_size_t index; /* Index of the field */
334 pb_size_t field_info_index; /* Index to descriptor->field_info array */
335 pb_size_t required_field_index; /* Index that counts only the required fields */
336 pb_size_t submessage_index; /* Index that counts only submessages */
[all …]
Dpb_encode.c129 pb_size_t i; in encode_array()
130 pb_size_t count; in encode_array()
135 count = *(pb_size_t*)field->pSize; in encode_array()
257 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
262 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
284 pb_size_t i; in pb_check_proto3_default_value()
422 if (*(const pb_size_t*)field->pSize != field->tag) in encode_field()
DCHANGELOG.txt410 Change the _count fields to use pb_size_t datatype (issue 82)
/nanopb-3.4.0/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-3.4.0/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-3.4.0/tests/regression/issue_205/
Dsize_corruption.c7 msg.bar_count = (pb_size_t)-1; in main()
/nanopb-3.4.0/tests/regression/issue_376/
Dtest_fixarray.c13 pb_size_t msglen = 0; in main()
/nanopb-3.4.0/tests/regression/issue_363/
Dtest_oneofmsg.c13 pb_size_t msglen = 0; in main()
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h293 typedef uint32_t pb_size_t; typedef
296 typedef uint_least16_t pb_size_t; typedef
299 #define PB_SIZE_MAX ((pb_size_t)-1)
323 pb_size_t field_count;
324 pb_size_t required_field_count;
325 pb_size_t largest_tag;
333 pb_size_t index; /* Index of the field */
334 pb_size_t field_info_index; /* Index to descriptor->field_info array */
335 pb_size_t required_field_index; /* Index that counts only the required fields */
336 pb_size_t submessage_index; /* Index that counts only submessages */
[all …]
/nanopb-3.4.0/tests/regression/issue_342/
Dtest_extensions.c19 pb_size_t msglen = 0; in main()
/nanopb-3.4.0/tests/regression/issue_249/
Dtest.c37 pb_size_t msglen; in main()
/nanopb-3.4.0/docs/
Dreference.md186 ### pb_size_t subsection
191 typedef uint_least16_t pb_size_t;
251 pb_size_t field_count;
278 pb_size_t index;
279 pb_size_t field_info_index;
280 pb_size_t required_field_index;
281 pb_size_t submessage_index;
283 pb_size_t tag;
284 pb_size_t data_size;
285 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];`
438 pb_size_t which_payload;
Dmigration.md453 ### Change data type of field counts to pb_size_t
461 **Changes:** Generator will now use `pb_size_t` for the array
466 to the `pb_size_t` type may need to be added in the user code when
/nanopb-3.4.0/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-3.4.0/tests/encode_unittests/
Dencode_unittests.c242 struct { pb_size_t size; uint8_t bytes[5]; } value = {5, {'x', 'y', 'z', 'z', 'y'}}; in main()