MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / ucvector_push_back

Function ucvector_push_back

samples/shared/lodepng.cpp:281–286  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

279#if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER)
280/*returns 1 if success, 0 if failure ==> nothing done*/
281static unsigned ucvector_push_back(ucvector* p, unsigned char c)
282{
283 if(!ucvector_resize(p, p->size + 1)) return 0;
284 p->data[p->size - 1] = c;
285 return 1;
286}
287#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
288
289

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