write given buffer to the file, overwriting the file, it doesn't append to it.*/
| 6282 | |
| 6283 | /*write given buffer to the file, overwriting the file, it doesn't append to it.*/ |
| 6284 | unsigned save_file(const std::vector<unsigned char>& buffer, const std::string& filename) { |
| 6285 | return lodepng_save_file(buffer.empty() ? 0 : &buffer[0], buffer.size(), filename.c_str()); |
| 6286 | } |
| 6287 | #endif /* LODEPNG_COMPILE_DISK */ |
| 6288 | |
| 6289 | #ifdef LODEPNG_COMPILE_ZLIB |
no test coverage detected