MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / ucvector_push_back

Function ucvector_push_back

dependency/densecrf/examples/lodepng.cpp:265–270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

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