Home
last modified time | relevance | path

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

/nanopb-3.4.0/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-3.4.0/
Dpb_decode.c46 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t …
561 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … in allocate_field() function
656 if (!allocate_field(stream, field->pField, field->data_size, 1)) in decode_pointer_field()
699 … if (!allocate_field(&substream, field->pField, field->data_size, allocated_size)) in decode_pointer_field()
736 if (!allocate_field(stream, field->pField, field->data_size, (size_t)(*size + 1))) in decode_pointer_field()
1520 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_bytes()
1562 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_string()