chunkName must be string of 4 characters*/
| 4860 | |
| 4861 | /*chunkName must be string of 4 characters*/ |
| 4862 | static unsigned addChunk(ucvector* out, const char* chunkName, const unsigned char* data, size_t length) |
| 4863 | { |
| 4864 | CERROR_TRY_RETURN(lodepng_chunk_create(&out->data, &out->size, (unsigned)length, chunkName, data)); |
| 4865 | out->allocsize = out->size; /*fix the allocsize again*/ |
| 4866 | return 0; |
| 4867 | } |
| 4868 | |
| 4869 | static void writeSignature(ucvector* out) |
| 4870 | { |
no test coverage detected