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

Function ucvector_push_back

src/lodepng.cpp:264–269  ·  view source on GitHub ↗

returns 1 if success, 0 if failure ==> nothing done*/

Source from the content-addressed store, hash-verified

262#if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER)
263/*returns 1 if success, 0 if failure ==> nothing done*/
264static unsigned ucvector_push_back(ucvector* p, unsigned char c)
265{
266 if(!ucvector_resize(p, p->size + 1)) return 0;
267 p->data[p->size - 1] = c;
268 return 1;
269}
270#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
271
272

Callers 14

lodepng.cppFile · 0.85
deflateNoCompressionFunction · 0.85
lodepng_zlib_compressFunction · 0.85
readChunk_zTXtFunction · 0.85
readChunk_iTXtFunction · 0.85
writeSignatureFunction · 0.85
addChunk_IHDRFunction · 0.85
addChunk_PLTEFunction · 0.85
addChunk_tRNSFunction · 0.85
addChunk_tEXtFunction · 0.85
addChunk_zTXtFunction · 0.85
addChunk_iTXtFunction · 0.85

Calls 1

ucvector_resizeFunction · 0.85

Tested by

no test coverage detected