Is there a commonly-used C++ library for the task of reading and writing entire buffers/contiguous containers from files? I mean, reading/writing raw binary data, nor formatted output.
Desired features:
- Use of memory mapping when relevant/possible
- Support for endianness correction of integer data
- Typed and untyped usage
- Does not force the user to work through streams
- Supports both self-allocation and provided space for the output
- Actively maintained
Required features:
- Libre
- Gratis
- Supports Linux