resize and give all new elements the value*/
| 240 | #ifdef LODEPNG_COMPILE_DECODER |
| 241 | /*resize and give all new elements the value*/ |
| 242 | static unsigned ucvector_resizev(ucvector* p, size_t size, unsigned char value) |
| 243 | { |
| 244 | size_t oldsize = p->size, i; |
| 245 | if(!ucvector_resize(p, size)) return 0; |
| 246 | for(i = oldsize; i < size; i++) p->data[i] = value; |
| 247 | return 1; |
| 248 | } |
| 249 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 250 | #endif /*LODEPNG_COMPILE_PNG*/ |
| 251 |
no test coverage detected