MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ucvector_resizev

Function ucvector_resizev

src/lodepng.cpp:242–248  ·  view source on GitHub ↗

resize and give all new elements the value*/

Source from the content-addressed store, hash-verified

240#ifdef LODEPNG_COMPILE_DECODER
241/*resize and give all new elements the value*/
242static 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

Callers 1

lodepng.cppFile · 0.85

Calls 1

ucvector_resizeFunction · 0.85

Tested by

no test coverage detected