/nanopb-3.4.0/tests/fuzztest/ |
D | validation.c | 36 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()
|
D | generate_message.c | 30 ((pb_bytes_array_t*)iter.pData)->size %= iter.data_size - PB_BYTES_ARRAY_T_ALLOCSIZE(0); in limit_sizes()
|
/nanopb-3.4.0/ |
D | pb.h | 339 pb_size_t data_size; /* sizeof() of a single item */ 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 …]
|
D | pb_decode.c | 46 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … 424 if (field->data_size == sizeof(float)) in decode_basic_field() 486 field->pData = (char*)field->pField + field->data_size * (*size); in decode_static_field() 499 field->pData = (char*)field->pData + field->data_size; in decode_static_field() 513 field->pData = (char*)field->pField + field->data_size * (*size); in decode_static_field() 532 memset(field->pData, 0, (size_t)field->data_size); in decode_static_field() 561 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … 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() 574 data_size = 2; in allocate_field() [all …]
|
D | pb_encode.c | 167 field->pData = (char*)field->pData + field->data_size; in encode_array() 193 field->pData = (char*)field->pData + field->data_size; in encode_array() 234 field->pData = (char*)field->pData + field->data_size; in encode_array() 286 for (i = 0; i < field->data_size; i++) in pb_check_proto3_default_value() 310 return field->data_size == 0; in pb_check_proto3_default_value() 789 if (field->data_size == sizeof(uint_least8_t)) in pb_enc_varint() 791 else if (field->data_size == sizeof(uint_least16_t)) in pb_enc_varint() 793 else if (field->data_size == sizeof(uint32_t)) in pb_enc_varint() 795 else if (field->data_size == sizeof(pb_uint64_t)) in pb_enc_varint() 807 if (field->data_size == sizeof(int_least8_t)) in pb_enc_varint() [all …]
|
D | pb_common.c | 28 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-3.4.0/spm_headers/nanopb/ |
D | pb.h | 339 pb_size_t data_size; /* sizeof() of a single item */ 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/decode_unittests/ |
D | decode_unittests.c | 135 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-3.4.0/tests/encode_unittests/ |
D | encode_unittests.c | 184 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-3.4.0/generator/ |
D | nanopb_generator.py | 894 def data_size(self, dependencies): member in Field 910 size = dependencies[str(self.submsgname)].data_size(other_dependencies) 1179 def data_size(self, dependencies): member in OneOf 1180 return max(f.data_size(dependencies) for f in self.fields) 1509 max_offset = self.data_size(dependencies) 1511 max_datasize = max(field.data_size(dependencies) for field in self.all_fields()) 1527 def data_size(self, dependencies): member in Message 1529 return sum(f.data_size(dependencies) for f in self.fields) 2102 size = msg.data_size(self.dependencies)
|
/nanopb-3.4.0/docs/ |
D | reference.md | 284 pb_size_t data_size; 304 | data_size | `sizeof()` of the field in the structure. For repeated fields this is for …
|