Home
last modified time | relevance | path

Searched refs:pSize (Results 1 – 9 of 9) 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.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-2.7.6/
Dpb_decode.c472 if (field->pSize != NULL) in decode_static_field()
473 *(bool*)field->pSize = true; in decode_static_field()
483 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
510 pb_size_t *size = (pb_size_t*)field->pSize; in decode_static_field()
521 *(pb_size_t*)field->pSize != field->tag) in decode_static_field()
545 *(pb_size_t*)field->pSize = field->tag; in decode_static_field()
642 *(pb_size_t*)field->pSize = field->tag; in decode_pointer_field()
668 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
723 pb_size_t *size = (pb_size_t*)field->pSize; in decode_pointer_field()
880 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.c112 static bool safe_read_bool(const void *pSize) in safe_read_bool() argument
114 const char *p = (const char *)pSize; in safe_read_bool()
133 count = *(pb_size_t*)field->pSize; in encode_array()
255 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
260 return *(const pb_size_t*)field->pSize == 0; in pb_check_proto3_default_value()
262 else if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_check_proto3_default_value()
266 return safe_read_bool(field->pSize) == false; in pb_check_proto3_default_value()
420 if (*(const pb_size_t*)field->pSize != field->tag) in encode_field()
428 if (field->pSize) in encode_field()
430 if (safe_read_bool(field->pSize) == false) in encode_field()
[all …]
Dpb.h309 void *pSize; /* Pointer to count/has field */ member
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h309 void *pSize; /* Pointer to count/has field */ member
/nanopb-2.7.6/docs/
Dreference.md277 void *pSize;
296 | pSize | Pointer to count or has field, or NULL if this field doesn't have such.