Home
last modified time | relevance | path

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

/nanopb-3.4.0/
Dpb_decode.c1499 size_t alloc_size; in pb_dec_bytes() local
1508 alloc_size = PB_BYTES_ARRAY_T_ALLOCSIZE(size); in pb_dec_bytes()
1509 if (size > alloc_size) in pb_dec_bytes()
1520 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_bytes()
1527 if (alloc_size > field->data_size) in pb_dec_bytes()
1539 size_t alloc_size; in pb_dec_string() local
1549 alloc_size = (size_t)(size + 1); in pb_dec_string()
1551 if (alloc_size < size) in pb_dec_string()
1562 if (!allocate_field(stream, field->pData, alloc_size, 1)) in pb_dec_string()
1569 if (alloc_size > field->data_size) in pb_dec_string()