summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/ioprocs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* util/ioprocs.cpp: Added wrappers for common patterns. (#11608) Vas Crabb2024-02-251-56/+143
| | | | | emu/diimage.h: Removed fread overloads that allocate memory for output. util/core_file.cpp: Changed output size of load to size_t.
* unidasm.cpp: Code cleanup AJR2022-08-181-1/+0
| | | | | | | | | - Use ioprocs methods and do a single read for normal input files (i.e. without an additional memcpy) - Compute pc_mask without using loop - Correct likely mistake in calculation of rounded_size - Split main function in two * ioprocs.cpp: Remove no longer needed #include
* Miscellaneous cleanup: Vas Crabb2022-02-201-2/+2
| | | | | | | | * emu/machine.cpp: Organised #included headers by module. * formats/jvc_dsk.cpp: Don't hide diagnostics behind compile-time switch. * util/ioprocsfilter.h: Added doxygen comments so one doesn't need to read the source to work semantics.
* util: Further API cleanups: (#8661) Vas Crabb2021-10-051-354/+0
| | | | | * Turned `core_file` into an implementation of `random_read_write`. * Turned PNG errors into a standard error category. * Added a helper for generating what look like derived classes on-the-fly.
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-0/+1248
Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.