/nanopb-3.4.0/tests/common_unittests/ |
D | common_unittests.c | 21 TEST(iter.tag == 1 && iter.pData == &msg.req_int32 && !iter.pSize) in main() 22 …TEST(pb_field_iter_next(&iter) && iter.tag == 2 && iter.pData == &msg.req_int64 && !iter.pSize) in main() 23 …TEST(pb_field_iter_next(&iter) && iter.tag == 3 && iter.pData == &msg.req_uint32 && !iter.pSize) in main() 24 …TEST(pb_field_iter_next(&iter) && iter.tag == 4 && iter.pData == &msg.req_uint64 && !iter.pSize) in main() 25 …TEST(pb_field_iter_next(&iter) && iter.tag == 5 && iter.pData == &msg.req_sint32 && !iter.pSize) in main() 26 …TEST(pb_field_iter_next(&iter) && iter.tag == 6 && iter.pData == &msg.req_sint64 && !iter.pSize) in main() 27 …TEST(pb_field_iter_next(&iter) && iter.tag == 7 && iter.pData == &msg.req_bool && !iter.pSize) in main() 28 …TEST(pb_field_iter_next(&iter) && iter.tag == 8 && iter.pData == &msg.req_fixed32 && !iter.pSize) in main() 29 …TEST(pb_field_iter_next(&iter) && iter.tag == 9 && iter.pData == &msg.req_sfixed32 && !iter.pSize) in main() 30 …TEST(pb_field_iter_next(&iter) && iter.tag == 10 && iter.pData == &msg.req_float && !iter.pSize) in main() [all …]
|
/nanopb-3.4.0/tests/fuzztest/ |
D | validation.c | 36 void *pData = (char*)iter->pData + iter->data_size * i; in validate_static() local 41 assert(strlen(pData) + 1 <= iter->data_size); in validate_static() 46 pb_bytes_array_t *bytes = pData; in validate_static() 52 assert(memcmp(pData, &truebool, sizeof(bool)) == 0 || in validate_static() 53 memcmp(pData, &falsebool, sizeof(bool)) == 0); in validate_static() 57 validate_message(pData, 0, iter->submsg_desc); in validate_static() 77 else if (!iter->pData) in validate_pointer() 90 size_t allocated_size = get_allocation_size(iter->pData); in validate_pointer() 96 size_t allocated_size = get_allocation_size(iter->pData); in validate_pointer() 102 void *pData = (char*)iter->pData + iter->data_size * i; in validate_pointer() local [all …]
|
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_encode.c | 162 void *pData_orig = field->pData; in encode_array() 167 field->pData = (char*)field->pData + field->data_size; in encode_array() 169 field->pData = pData_orig; in encode_array() 193 field->pData = (char*)field->pData + field->data_size; in encode_array() 210 void *pData_orig = field->pData; in encode_array() 211 field->pData = *(void* const*)field->pData; in encode_array() 213 if (!field->pData) in encode_array() 224 field->pData = pData_orig; in encode_array() 234 field->pData = (char*)field->pData + field->data_size; in encode_array() 285 const char *p = (const char*)field->pData; in pb_check_proto3_default_value() [all …]
|
D | pb_decode.c | 46 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … 417 return pb_decode_fixed32(stream, field->pData); in decode_basic_field() 426 return pb_decode_double_as_float(stream, (float*)field->pData); in decode_basic_field() 433 return pb_decode_fixed64(stream, field->pData); 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() 540 if (pb_field_iter_begin(&submsg_iter, field->submsg_desc, field->pData)) 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 [all …]
|
D | pb_common.c | 102 iter->pData = *(void**)iter->pField; in load_descriptor_values() 106 iter->pData = iter->pField; in load_descriptor_values() 304 pb_callback_t *pCallback = (pb_callback_t*)field->pData; in pb_default_field_callback()
|
D | pb.h | 344 …void *pData; /* Pointer to current data contents. Different than pField for ar… member
|
/nanopb-3.4.0/tests/cxx_callback_datatype/ |
D | cxx_callback_datatype.cpp | 13 const std::vector<int> &v = *(const std::vector<int> *)field->pData; in TestMessage_submessages_callback() 25 std::vector<int> &v = *(std::vector<int> *)field->pData; in TestMessage_submessages_callback()
|
/nanopb-3.4.0/tests/oneof_callback/ |
D | decode_oneof.c | 92 SubMsg1 *msg = field->pData; in msg_callback() 99 SubMsg2 *msg = field->pData; in msg_callback()
|
D | encode_oneof.c | 21 const char *str = *(const char**)field->pData; in SubMsg3_callback()
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 136 f.pData = &d; in main() 154 f.pData = &d; in main() 170 f.pData = &d; in main() 186 f.pData = &d; in main() 202 f.pData = &d; in main() 217 f.pData = &d; in main() 232 f.pData = &d; in main() 269 f.pData = &d; in main() 294 f.pData = &d; in main()
|
/nanopb-3.4.0/tests/encode_unittests/ |
D | encode_unittests.c | 185 field.pData = &value; in main() 190 field.pData = &max; in main() 195 field.pData = &min; in main() 200 field.pData = &lmax; in main() 205 field.pData = &lmin; in main() 219 field.pData = &fvalue; in main() 230 field.pData = &dvalue; in main()
|
/nanopb-3.4.0/tests/regression/issue_544/ |
D | submsg_callback.c | 10 SubMessage *submsg = (SubMessage*)field->pData; in msg_callback()
|
/nanopb-3.4.0/examples/network_server/ |
D | server.c | 36 DIR *dir = *(DIR**)field->pData; in ListFilesResponse_callback()
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb.h | 344 …void *pData; /* Pointer to current data contents. Different than pField for ar… member
|
/nanopb-3.4.0/docs/ |
D | reference.md | 289 void *pData; 308 | pData | Pointer to data contents. For arrays and pointers this can be different th…
|