Searched refs:allocate_field (Results 1 – 4 of 4) sorted by relevance
/external/grpc-grpc/third_party/nanopb/tests/decode_unittests/ |
D | decode_unittests.c | 323 TEST(allocate_field(&s, &data, 10, 10) && data != NULL); in main() 324 TEST(allocate_field(&s, &data, 10, 20) && data != NULL); in main() 332 TEST(!allocate_field(&s, &data, very_big, 2) && data == oldvalue); in main() 333 TEST(!allocate_field(&s, &data, somewhat_big, 2) && data == oldvalue); in main() 334 TEST(!allocate_field(&s, &data, not_so_big, not_so_big) && data == oldvalue); in main()
|
/external/nanopb-c/tests/decode_unittests/ |
D | decode_unittests.c | 378 TEST(allocate_field(&s, &data, 10, 10) && data != NULL); in main() 379 TEST(allocate_field(&s, &data, 10, 20) && data != NULL); in main() 387 TEST(!allocate_field(&s, &data, very_big, 2) && data == oldvalue); in main() 388 TEST(!allocate_field(&s, &data, somewhat_big, 2) && data == oldvalue); in main() 389 TEST(!allocate_field(&s, &data, not_so_big, not_so_big) && data == oldvalue); in main()
|
/external/grpc-grpc/third_party/nanopb/ |
D | pb_decode.c | 50 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … 427 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … in allocate_field() function 514 if (!allocate_field(stream, iter->pData, iter->pos->data_size, 1)) in decode_pointer_field() 544 … if (!allocate_field(&substream, iter->pData, iter->pos->data_size, allocated_size)) in decode_pointer_field() 585 if (!allocate_field(stream, iter->pData, iter->pos->data_size, *size)) in decode_pointer_field() 1269 if (!allocate_field(stream, dest, alloc_size, 1)) in pb_dec_bytes() 1310 if (!allocate_field(stream, dest, alloc_size, 1)) in pb_dec_string()
|
/external/nanopb-c/ |
D | pb_decode.c | 51 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … 482 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … in allocate_field() function 572 if (!allocate_field(stream, iter->pData, iter->pos->data_size, 1)) in decode_pointer_field() 602 … if (!allocate_field(&substream, iter->pData, iter->pos->data_size, allocated_size)) in decode_pointer_field() 644 if (!allocate_field(stream, iter->pData, iter->pos->data_size, *size)) in decode_pointer_field() 1412 if (!allocate_field(stream, dest, alloc_size, 1)) in pb_dec_bytes() 1447 if (!allocate_field(stream, dest, alloc_size, 1)) in pb_dec_string()
|