Searched refs:alloc_size (Results 1 – 1 of 1) sorted by relevance
1481 size_t alloc_size; in pb_dec_bytes() local1490 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() local1531 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()