MCPcopy Create free account
hub / github.com/DFHack/dfhack / uivector_push_back

Function uivector_push_back

depends/lodepng/lodepng.cpp:252–256  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

250
251/*returns 1 if success, 0 if failure ==> nothing done*/
252static unsigned uivector_push_back(uivector* p, unsigned c) {
253 if(!uivector_resize(p, p->size + 1)) return 0;
254 p->data[p->size - 1] = c;
255 return 1;
256}
257#endif /*LODEPNG_COMPILE_ENCODER*/
258#endif /*LODEPNG_COMPILE_ZLIB*/
259

Callers 1

encodeLZ77Function · 0.85

Calls 1

uivector_resizeFunction · 0.85

Tested by

no test coverage detected