Home
last modified time | relevance | path

Searched refs:allocate_field (Results 1 – 2 of 2) sorted by relevance

/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c425 TEST(allocate_field(&s, &data, 10, 10) && data != NULL); in main()
426 TEST(allocate_field(&s, &data, 10, 20) && data != NULL); in main()
434 TEST(!allocate_field(&s, &data, very_big, 2) && data == oldvalue); in main()
435 TEST(!allocate_field(&s, &data, somewhat_big, 2) && data == oldvalue); in main()
436 TEST(!allocate_field(&s, &data, not_so_big, not_so_big) && data == oldvalue); in main()
/nanopb-2.7.6/
Dpb_decode.c46 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t …
559 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … in allocate_field() function
654 if (!allocate_field(stream, field->pField, field->data_size, 1)) in decode_pointer_field()
697 … if (!allocate_field(&substream, field->pField, field->data_size, allocated_size)) in decode_pointer_field()
728 if (!allocate_field(stream, field->pField, field->data_size, (size_t)(*size + 1))) in decode_pointer_field()
1502 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_bytes()
1544 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_string()