Home
last modified time | relevance | path

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

/nanopb-3.4.0/
Dpb.h340 pb_size_t array_size; /* Number of array entries */ member
563 #define PB_FIELDINFO_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
564 PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
566 #define PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
567 PB_FIELDINFO_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
608 #define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size argument
609 PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
611 #define PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size argument
612 PB_FIELDINFO_ASSERT_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
753 #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);
491 while (substream.bytes_left > 0 && *size < field->array_size) in decode_static_field()
515 if ((*size)++ >= field->array_size) in decode_static_field()
561 … checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t array_size) in allocate_field() argument
565 if (data_size == 0 || array_size == 0) in allocate_field()
572 if (data_size == 1 && array_size == 1) in allocate_field()
585 if (data_size >= check_limit || array_size >= check_limit) in allocate_field()
588 if (size_max / array_size < data_size) in allocate_field()
598 ptr = pb_realloc(ptr, array_size * data_size); in allocate_field()
1081 if (PB_HTYPE(iter.type) == PB_HTYPE_REPEATED && iter.pSize == &iter.array_size) in pb_decode_inner()
[all …]
Dpb_encode.c140 if (PB_ATYPE(field->type) != PB_ATYPE_POINTER && count > field->array_size) in encode_array()
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h340 pb_size_t array_size; /* Number of array entries */ member
563 #define PB_FIELDINFO_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
564 PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
566 #define PB_FIELDINFO_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size) \ argument
567 PB_FIELDINFO_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
608 #define PB_FIELDINFO_ASSERT_AUTO2(width, tag, type, data_offset, data_size, size_offset, array_size argument
609 PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size)
611 #define PB_FIELDINFO_ASSERT_AUTO3(width, tag, type, data_offset, data_size, size_offset, array_size argument
612 PB_FIELDINFO_ASSERT_ ## width(tag, type, data_offset, data_size, size_offset, array_size)
753 #define PB_FIELDINFO_1(tag, type, data_offset, data_size, size_offset, array_size) \ argument
[all …]
/nanopb-3.4.0/tests/fuzztest/
Dgenerate_message.c35 *((pb_size_t*)iter.pSize) %= iter.array_size; in limit_sizes()
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()
/nanopb-3.4.0/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-3.4.0/docs/
Dreference.md285 pb_size_t array_size;
305 | array_size | Maximum number of items in a statically allocated array.