Home
last modified time | relevance | path

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

/nanopb-2.7.6/
Dpb_decode.c1481 size_t alloc_size; in pb_dec_bytes() local
1490 alloc_size = PB_BYTES_ARRAY_T_ALLOCSIZE(size); in pb_dec_bytes()
1491 if (size > alloc_size) in pb_dec_bytes()
1502 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_bytes()
1509 if (alloc_size > field->data_size) in pb_dec_bytes()
1521 size_t alloc_size; in pb_dec_string() local
1531 alloc_size = (size_t)(size + 1); in pb_dec_string()
1533 if (alloc_size < size) in pb_dec_string()
1544 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_string()
1551 if (alloc_size > field->data_size) in pb_dec_string()