void retag_commit(abort_callback &p_abort) { byte out_module[ASAP_MODULE_MAX]; int out_len = ASAP_SetModuleInfo(&module_info, module, module_len, out_module); if (out_len <= 0) throw exception_io_unsupported_format(); m_file.release(); filesystem::g_open(m_file, filename, filesystem::open_mode_write_new, p_abort); m_file->write(out_module, out_len, p_abort); }
void write(int data) { BYTE b = (BYTE) data; m_file->write(&b, 1, *p_abort); }