Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 11 of 11) sorted by relevance

/nanopb-2.7.6/tests/fuzztest/
Dvalidation.c36 void *pData = (char*)iter->pData + iter->data_size * i; in validate_static()
41 assert(strlen(pData) + 1 <= iter->data_size); in validate_static()
47 assert(PB_BYTES_ARRAY_T_ALLOCSIZE(bytes->size) <= iter->data_size); in validate_static()
92 assert(allocated_size >= count * iter->data_size); in validate_pointer()
97 assert(allocated_size >= iter->data_size); in validate_pointer()
102 void *pData = (char*)iter->pData + iter->data_size * i; in validate_pointer()
Dgenerate_message.c30 ((pb_bytes_array_t*)iter.pData)->size %= iter.data_size - PB_BYTES_ARRAY_T_ALLOCSIZE(0); in limit_sizes()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h303 pb_size_t data_size; /* sizeof() of a single item */ 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.h303 pb_size_t data_size; /* sizeof() of a single item */ 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_decode.c46 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t …
422 if (field->data_size == sizeof(float)) in decode_basic_field()
484 field->pData = (char*)field->pField + field->data_size * (*size); in decode_static_field()
497 field->pData = (char*)field->pData + field->data_size; in decode_static_field()
511 field->pData = (char*)field->pField + field->data_size * (*size); in decode_static_field()
530 memset(field->pData, 0, (size_t)field->data_size); in decode_static_field()
559 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … 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()
572 data_size = 2; in allocate_field()
[all …]
Dpb_encode.c165 field->pData = (char*)field->pData + field->data_size; in encode_array()
191 field->pData = (char*)field->pData + field->data_size; in encode_array()
232 field->pData = (char*)field->pData + field->data_size; in encode_array()
284 for (i = 0; i < field->data_size; i++) in pb_check_proto3_default_value()
308 return field->data_size == 0; in pb_check_proto3_default_value()
776 if (field->data_size == sizeof(uint_least8_t)) in pb_enc_varint()
778 else if (field->data_size == sizeof(uint_least16_t)) in pb_enc_varint()
780 else if (field->data_size == sizeof(uint32_t)) in pb_enc_varint()
782 else if (field->data_size == sizeof(pb_uint64_t)) in pb_enc_varint()
794 if (field->data_size == sizeof(int_least8_t)) in pb_enc_varint()
[all …]
Dpb_common.c28 iter->data_size = (pb_size_t)((word0 >> 28) & 0x0F); in load_descriptor_values()
40 iter->data_size = (pb_size_t)((word1 >> 16) & 0x0FFF); in load_descriptor_values()
54 iter->data_size = (pb_size_t)word3; in load_descriptor_values()
69 iter->data_size = (pb_size_t)word3; in load_descriptor_values()
302 if (field->data_size == sizeof(pb_callback_t)) in pb_default_field_callback()
/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c135 f.data_size = sizeof(d); in main()
143 f.data_size = 1; in main()
153 f.data_size = sizeof(d); in main()
169 f.data_size = sizeof(d); in main()
185 f.data_size = sizeof(d); in main()
201 f.data_size = sizeof(d); in main()
216 f.data_size = sizeof(d); in main()
231 f.data_size = sizeof(d); in main()
268 f.data_size = sizeof(d); in main()
293 f.data_size = sizeof(d); in main()
/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c184 field.data_size = sizeof(value); in main()
189 field.data_size = sizeof(max); in main()
194 field.data_size = sizeof(min); in main()
199 field.data_size = sizeof(lmax); in main()
204 field.data_size = sizeof(lmin); in main()
218 field.data_size = sizeof(fvalue); in main()
229 field.data_size = sizeof(dvalue); in main()
/nanopb-2.7.6/generator/
Dnanopb_generator.py795 def data_size(self, dependencies): member in Field
811 size = dependencies[str(self.submsgname)].data_size(other_dependencies)
1079 def data_size(self, dependencies): member in OneOf
1080 return max(f.data_size(dependencies) for f in self.fields)
1375 max_offset = self.data_size(dependencies)
1377 max_datasize = max(field.data_size(dependencies) for field in self.all_fields())
1393 def data_size(self, dependencies): member in Message
1395 return sum(f.data_size(dependencies) for f in self.fields)
/nanopb-2.7.6/docs/
Dreference.md271 pb_size_t data_size;
291 | data_size | `sizeof()` of the field in the structure. For repeated fields this is for …