Home
last modified time | relevance | path

Searched refs:pData (Results 1 – 16 of 16) sorted by relevance

/nanopb-2.7.6/tests/common_unittests/
Dcommon_unittests.c21 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-2.7.6/tests/fuzztest/
Dvalidation.c36 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 …]
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/
Dpb_encode.c160 void *pData_orig = field->pData; in encode_array()
165 field->pData = (char*)field->pData + field->data_size; in encode_array()
167 field->pData = pData_orig; in encode_array()
191 field->pData = (char*)field->pData + field->data_size; in encode_array()
208 void *pData_orig = field->pData; in encode_array()
209 field->pData = *(void* const*)field->pData; in encode_array()
211 if (!field->pData) in encode_array()
222 field->pData = pData_orig; in encode_array()
232 field->pData = (char*)field->pData + field->data_size; in encode_array()
283 const char *p = (const char*)field->pData; in pb_check_proto3_default_value()
[all …]
Dpb_decode.c46 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t …
415 return pb_decode_fixed32(stream, field->pData); in decode_basic_field()
424 return pb_decode_double_as_float(stream, (float*)field->pData); in decode_basic_field()
431 return pb_decode_fixed64(stream, field->pData); 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()
538 if (pb_field_iter_begin(&submsg_iter, field->submsg_desc, field->pData)) 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
[all …]
Dpb_common.c102 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()
Dpb.h308 …void *pData; /* Pointer to current data contents. Different than pField for ar… member
/nanopb-2.7.6/tests/cxx_callback_datatype/
Dcxx_callback_datatype.cpp13 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-2.7.6/tests/oneof_callback/
Ddecode_oneof.c92 SubMsg1 *msg = field->pData; in msg_callback()
99 SubMsg2 *msg = field->pData; in msg_callback()
Dencode_oneof.c21 const char *str = *(const char**)field->pData; in SubMsg3_callback()
/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c136 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-2.7.6/tests/encode_unittests/
Dencode_unittests.c185 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-2.7.6/tests/regression/issue_544/
Dsubmsg_callback.c10 SubMessage *submsg = (SubMessage*)field->pData; in msg_callback()
/nanopb-2.7.6/examples/network_server/
Dserver.c36 DIR *dir = *(DIR**)field->pData; in ListFilesResponse_callback()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h308 …void *pData; /* Pointer to current data contents. Different than pField for ar… member
/nanopb-2.7.6/docs/
Dreference.md276 void *pData;
295 | pData | Pointer to data contents. For arrays and pointers this can be different th…