chunkName must be string of 4 characters*/
| 4880 | |
| 4881 | /*chunkName must be string of 4 characters*/ |
| 4882 | static unsigned addChunk(ucvector* out, const char* chunkName, const unsigned char* data, size_t length) |
| 4883 | { |
| 4884 | CERROR_TRY_RETURN(lodepng_chunk_create(&out->data, &out->size, (unsigned)length, chunkName, data)); |
| 4885 | out->allocsize = out->size; /*fix the allocsize again*/ |
| 4886 | return 0; |
| 4887 | } |
| 4888 | |
| 4889 | static void writeSignature(ucvector* out) |
| 4890 | { |
no test coverage detected