you can both convert from vector to buffer&size and vica versa. If you use init_buffer to take over a buffer and size, it is not needed to use cleanup*/
| 270 | /*you can both convert from vector to buffer&size and vica versa. If you use |
| 271 | init_buffer to take over a buffer and size, it is not needed to use cleanup*/ |
| 272 | static void ucvector_init_buffer(ucvector* p, unsigned char* buffer, size_t size) |
| 273 | { |
| 274 | p->data = buffer; |
| 275 | p->allocsize = p->size = size; |
| 276 | } |
| 277 | #endif /*LODEPNG_COMPILE_ZLIB*/ |
| 278 | |
| 279 | #if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER) |
no outgoing calls
no test coverage detected