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

Function lodepng_chunk_create

depends/lodepng/lodepng.cpp:2620–2627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2618}
2619
2620unsigned lodepng_chunk_create(unsigned char** out, size_t* outsize,
2621 unsigned length, const char* type, const unsigned char* data) {
2622 ucvector v = ucvector_init(*out, *outsize);
2623 unsigned error = lodepng_chunk_createv(&v, length, type, data);
2624 *out = v.data;
2625 *outsize = v.size;
2626 return error;
2627}
2628
2629/* ////////////////////////////////////////////////////////////////////////// */
2630/* / Color types, channels, bits / */

Callers

nothing calls this directly

Calls 2

ucvector_initFunction · 0.85
lodepng_chunk_createvFunction · 0.85

Tested by

no test coverage detected