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

Function ucvector_resize

dependency/densecrf/examples/lodepng.cpp:230–235  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

228
229/*returns 1 if success, 0 if failure ==> nothing done*/
230static unsigned ucvector_resize(ucvector* p, size_t size)
231{
232 if(!ucvector_reserve(p, size * sizeof(unsigned char))) return 0;
233 p->size = size;
234 return 1; /*success*/
235}
236
237#ifdef LODEPNG_COMPILE_PNG
238

Callers 6

ucvector_push_backFunction · 0.85
lodepng_add32bitIntFunction · 0.85
inflateHuffmanBlockFunction · 0.85
inflateNoCompressionFunction · 0.85
readChunk_iTXtFunction · 0.85
decodeGenericFunction · 0.85

Calls 1

ucvector_reserveFunction · 0.85

Tested by

no test coverage detected