Home
last modified time | relevance | path

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

/nanopb-3.4.0/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-3.4.0/tests/fuzztest/
Dvalidation.c13 if (PB_HTYPE(iter->type) == PB_HTYPE_REPEATED && iter->pSize) in validate_static()
16 count = *(pb_size_t*)iter->pSize; in validate_static()
19 else if (PB_HTYPE(iter->type) == PB_HTYPE_OPTIONAL && iter->pSize) in validate_static()
22 assert(memcmp(iter->pSize, &truebool, sizeof(bool)) == 0 || in validate_static()
23 memcmp(iter->pSize, &falsebool, sizeof(bool)) == 0); in validate_static()
27 if (*(pb_size_t*)iter->pSize != iter->tag) in validate_static()
71 if (*(pb_size_t*)iter->pSize != iter->tag) in validate_pointer()
80 if (PB_HTYPE(iter->type) == PB_HTYPE_REPEATED && iter->pSize != &iter->array_size) in validate_pointer()
82 assert(*(pb_size_t*)iter->pSize == 0); in validate_pointer()
91 count = *(pb_size_t*)iter->pSize; in validate_pointer()
Dgenerate_message.c35 *((pb_size_t*)iter.pSize) %= iter.array_size; in limit_sizes()
43 *((pb_size_t*)iter.pSize) = iter.tag; in limit_sizes()
/nanopb-3.4.0/
Dpb_decode.c474 if (field->pSize != NULL) in decode_static_field()
475 *(bool*)field->pSize = true; in decode_static_field()
485 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
512 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
523 *(pb_size_t*)field->pSize != field->tag) in decode_static_field()
547 *(pb_size_t*)field->pSize = field->tag; in decode_static_field()
644 *(pb_size_t*)field->pSize = field->tag; in decode_pointer_field()
670 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
731 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
891 if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_field_set_to_default()
[all …]
Dpb_common.c78 iter->pSize = NULL; in load_descriptor_values()
86 iter->pSize = (char*)iter->pField - size_offset; in load_descriptor_values()
93 iter->pSize = &iter->array_size; in load_descriptor_values()
97 iter->pSize = NULL; in load_descriptor_values()
184 iter->pSize = &extension->found; in pb_field_iter_begin_extension()
Dpb_encode.c114 static bool safe_read_bool(const void *pSize) in safe_read_bool() argument
116 const char *p = (const char *)pSize; in safe_read_bool()
135 count = *(pb_size_t*)field->pSize; in encode_array()
257 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
262 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
264 else if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_check_proto3_default_value()
268 return safe_read_bool(field->pSize) == false; in pb_check_proto3_default_value()
422 if (*(const pb_size_t*)field->pSize != field->tag) in encode_field()
430 if (field->pSize) in encode_field()
432 if (safe_read_bool(field->pSize) == false) in encode_field()
[all …]
Dpb.h345 void *pSize; /* Pointer to count/has field */ member
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h345 void *pSize; /* Pointer to count/has field */ member
/nanopb-3.4.0/docs/
Dreference.md290 void *pSize;
309 | pSize | Pointer to count or has field, or NULL if this field doesn't have such.