Home
last modified time | relevance | path

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

/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h304 pb_size_t array_size; /* Number of array entries */ member
526 #define PB_FIELDINFO_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
527 PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
529 #define PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
530 PB_FIELDINFO_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
571 #define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size argument
572 PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
574 #define PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size argument
575 PB_FIELDINFO_ASSERT_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
716 #define PB_FIELDINFO_1(tag, type, data_offset, data_size, size_offset, array_size) \ argument
[all …]
/nanopb-2.7.6/
Dpb.h304 pb_size_t array_size; /* Number of array entries */ member
526 #define PB_FIELDINFO_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
527 PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
529 #define PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
530 PB_FIELDINFO_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
571 #define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size argument
572 PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
574 #define PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size argument
575 PB_FIELDINFO_ASSERT_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
716 #define PB_FIELDINFO_1(tag, type, data_offset, data_size, size_offset, array_size) \ argument
[all …]
Dpb_common.c24 iter->array_size = 1; in load_descriptor_values()
36 iter->array_size = (pb_size_t)((word0 >> 16) & 0x0FFF); in load_descriptor_values()
50 iter->array_size = (pb_size_t)(word0 >> 16); in load_descriptor_values()
65 iter->array_size = (pb_size_t)word4; in load_descriptor_values()
93 iter->pSize = &iter->array_size; in load_descriptor_values()
Dpb_decode.c46 …checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t array_size);
489 while (substream.bytes_left > 0 && *size < field->array_size) in decode_static_field()
513 if ((*size)++ >= field->array_size) in decode_static_field()
559 … checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t array_size) in allocate_field() argument
563 if (data_size == 0 || array_size == 0) in allocate_field()
570 if (data_size == 1 && array_size == 1) in allocate_field()
583 if (data_size >= check_limit || array_size >= check_limit) in allocate_field()
586 if (size_max / array_size < data_size) in allocate_field()
596 ptr = pb_realloc(ptr, array_size * data_size); in allocate_field()
1070 if (PB_HTYPE(iter.type) == PB_HTYPE_REPEATED && iter.pSize == &iter.array_size) in pb_decode_inner()
[all …]
Dpb_encode.c138 if (PB_ATYPE(field->type) != PB_ATYPE_POINTER && count > field->array_size) in encode_array()
/nanopb-2.7.6/tests/fuzztest/
Dvalidation.c17 assert(count <= iter->array_size); in validate_static()
80 if (PB_HTYPE(iter->type) == PB_HTYPE_REPEATED && iter->pSize != &iter->array_size) in validate_pointer()
Dgenerate_message.c35 *((pb_size_t*)iter.pSize) %= iter.array_size; in limit_sizes()
/nanopb-2.7.6/tests/common_unittests/
Dcommon_unittests.c63 …== 40 && iter.pData == &msg.rep_farray && iter.pSize == &iter.array_size && iter.array_size == 5) in main()
96 … == 95 && iter.pData == &msg.rep_farray2 && iter.pSize == &iter.array_size && iter.array_size == 3) in main()
/nanopb-2.7.6/docs/
Dreference.md272 pb_size_t array_size;
292 | array_size | Maximum number of items in a statically allocated array.