Lines Matching refs:outlength
2434 unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk)
2439 size_t new_length = (*outlength) + total_chunk_length;
2440 if(new_length < total_chunk_length || new_length < (*outlength)) return 77; /*integer overflow happened*/
2445 (*outlength) = new_length;
2453 unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length,
2458 size_t new_length = (*outlength) + length + 12;
2459 if(new_length < length + 12 || new_length < (*outlength)) return 77; /*integer overflow happened*/
2463 (*outlength) = new_length;
2464 chunk = &(*out)[(*outlength) - length - 12];