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*/
| 254 | /*you can both convert from vector to buffer&size and vica versa. If you use |
| 255 | init_buffer to take over a buffer and size, it is not needed to use cleanup*/ |
| 256 | static void ucvector_init_buffer(ucvector* p, unsigned char* buffer, size_t size) |
| 257 | { |
| 258 | p->data = buffer; |
| 259 | p->allocsize = p->size = size; |
| 260 | } |
| 261 | #endif /*LODEPNG_COMPILE_ZLIB*/ |
| 262 | |
| 263 | #if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER) |
no outgoing calls
no test coverage detected