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

Function uivector_copy

samples/shared/lodepng.cpp:197–203  ·  view source on GitHub ↗

copy q to p, returns 1 if success, 0 if failure ==> nothing done*/

Source from the content-addressed store, hash-verified

195
196/*copy q to p, returns 1 if success, 0 if failure ==> nothing done*/
197static unsigned uivector_copy(uivector* p, const uivector* q)
198{
199 size_t i;
200 if(!uivector_resize(p, q->size)) return 0;
201 for(i = 0; i < q->size; i++) p->data[i] = q->data[i];
202 return 1;
203}
204#endif /*LODEPNG_COMPILE_ENCODER*/
205#endif /*LODEPNG_COMPILE_ZLIB*/
206

Callers 1

coin_copyFunction · 0.85

Calls 1

uivector_resizeFunction · 0.85

Tested by

no test coverage detected