| 1248 | } |
| 1249 | |
| 1250 | unsigned lodepng_inflate(unsigned char** out, size_t* outsize, |
| 1251 | const unsigned char* in, size_t insize, |
| 1252 | const LodePNGDecompressSettings* settings) |
| 1253 | { |
| 1254 | unsigned error; |
| 1255 | ucvector v; |
| 1256 | ucvector_init_buffer(&v, *out, *outsize); |
| 1257 | error = lodepng_inflatev(&v, in, insize, settings); |
| 1258 | *out = v.data; |
| 1259 | *outsize = v.size; |
| 1260 | return error; |
| 1261 | } |
| 1262 | |
| 1263 | static unsigned inflate(unsigned char** out, size_t* outsize, |
| 1264 | const unsigned char* in, size_t insize, |
no test coverage detected