void write(const char *file, const buffer &data, error_policy ep) { autoClose ac(open(file, "w", ep)); if (!ac.getHandle()) return; write(ac.getHandle(), data.getData(), data.getSize()); }
void write(const char* file, const buffer& data, error_policy ep) { write(file, data.getData(), data.getSize(), ep); }